Performance testing of salesforce application using JMeter - jmeter

I am trying to performance test the salesforce application using JMeter. All the requests has X-SFDC-Request-Id in the request headers. I couldn't correlate those header values from any of the previous request response. Is there any logic to implement the same using JMeter, as Salesforce does? Please assist
Thanks in advance,
Anto

Looking into What is the X-REQUEST-ID http header is seems that you need to pass some random value, it will allow the server to identify the failing request or for load balancing or whatever else reason.
So my expectation is that you can send something random or unique using __RandomString() or __UUID() functions as this is not something you should be correlating.
Check out Apache JMeter Functions - An Introduction article to learn more about JMeter Functions concept

Related

How to do performance testing with key-cloak authentication in Jmeter

I try to do performance testing but particular site have enable key-cloak authentication.any suggesstions
It's just a matter of correlation, the exact steps will be different for OpenID Connect and SAML so you need to determine which client protocol is being used in that particular Keycloak instance.
In order to get help with correlating individual parameters you will need to provide the previous response and the format of the next request so we could come up with the relevant instructions for JMeter Post-Processors setup.

Creating JMeter scripts for ServiceNow applications

I am wondering if anyone was able to successfully create JMeter scripts for ServiceNow applications?
My challenge is that there are way too many recorded HTTP requests and JSONs in POST requests & response are huge and extremely hard to correlate dynamic values.
Welcome to Web 2.0
I'm afraid you will have to perform the correlation as the times where you could just replay the recorded test has gone.
If you're looking for a way of reducing effort required for the correlation implementation you can consider trying out an automated correlation solution like:
JMX Enhancer
BlazeMeter Proxy Recorder with SmartJMX export option
Otherwise you will have to wait until it's implemented in JMeter

Jrpc calls through jmeter

I wanted to make a grpc calls through jmeter .Have done some searches but not getting the proper doc or site.
Would like to know if it is possible to make grpc calls through jmeter.
Also do we have some example doc/site for the same.
GRPC has Java API so you can generate client code (or reuse your application code if it's in Java) and implement the business use cases using JSR223 Samplers and Groovy language
Unfortunately the absolute maximum of information I can provide as the client code will be specific to your application so no one will be able to help unless you want to share the source code of your app which is highly unlikely to happen.
You may also take a look at jmeter-grpc-plugin (you will still have to write the code) and Client-side streaming RPC example

Using Jmeter for load test:why "Record and Replay" method?

I am a beginner working on jmeter. I am confused between the "Record and replay" method & the basic load test method (giving the url in the path and executing the test). Need help to distinguish between both - if possible with a good tutorial suggestion. Also how to do a "stress test" in the simplest way ?
The main idea behind web applications load testing is: your test must represent real user activities as close as possible.
How you implement it - it's up to you.
If you know exactly which requests you need to mimic - you're more than welcome to develop your test by manually adding HTTP Request samplers.
For those who are not very familiar with HTTP protocol it might be easier to go "record and replay" way. But remember, the chance that you will be able to successfully replay recorded test scenario is minimal, most probably your will have to perform correlation - handling dynamic request parameters.
With regards to tutorials, normally you should start with JMeter User Manual, especially pay attention to the following chapters:
Building a Web Test Plan
Building an Advanced Web Test Plan
You can also consider JMeter Academy - probably the fastest way of ramping up on JMeter

Describe the best practices to make data correlation simple in jmeter

What's the best strategy when doing data correlation with jmeter? I have some ideas/questions, that go along these lines: usage of automatic correlation solutions (http://jmeter.512774.n5.nabble.com/automatic-correlation-for-jmeter-td5531399.html), usage of post processing extractors that best suite the need, for example regexp for http headers, xpath exp for HTML, if using xpath, get assistance by using Firebug or similar plugins, usage of xpath vs css&jquery, don't correlate data that isn't checked on the server, for example, if http referer is not controlled, it would be a waiste of time to correlate it, ... and such, but I would like to hear from more experienced people.
JMeter doesn't have autocorrelation. However you have tools like JCorrelate to accomplish the same. JMX Enhancers have some good tools that can help you cut your JMeter scripting time by 95%. Vist www.jmxenhancer.com for more details.
On the other hand, Blazemeter also have Smart JMX in their plugin which gives us autocorrelated scripts.
There is no auto-correlation for JMeter. HP Loadrunner has this functionality however it often fails.
XPath vs CSS/JQuery:
if your page has a very complex DOM and low number of styles - go for CSS
if DOM of your page is simple and styles number is high - go for XPath
If you simulating a real user using real browser - JMeter test should replicate it as close as possible, so make sure that you have:
HTTP Cookie Manager
HTTP Cache Manager
HTTP Header Manager
HTTP Request Defaults configured to:
Retrieve all embedded resources
Use concurrent pool of 2-5 threads for it
Filter out any external domains via "URLs must match" input

Resources