Page Redirect ErrorPage.aspx - jmeter

I am executing performance tests in the Jmeter. However, I am an issue in response data. It's showed the following message:
1|#||4|58|pageRedirect||%2fDFE_PT%2fErrorPage.aspx%3fOriginId%3d637772668313066879|
Meantime, the page contains two IDs that is changed each iteration on the page. I've configured and controlled those IDs through regular expression. I do not get because this message is being displayed. This is displayed in all requests.
Has someone any tip to overtake this issue?

Make sure that the JMeter Variables which are coming from the Regular Expression Extractors really contain the anticipated values, you can do this using Debug Sampler and View Results Tree listener combination.
If the variables have the values perform the further cross-check of the network footprint of your JMeter test and the real browser.
Capture the request(s) which is being sent by the browser using browser developer tools (or maybe even better a sniffer tool like Fiddler or Burp)
Do the same for the request(s) which is(are) being sent from JMeter
Compare everything:
URL
Headers
Request body
all should be the same (apart from dynamic parameters which need to be correlated)
Given JMeter will be sending the same request as browser does - you will get the same response.

Related

Jmeter give error "We are sorry but vue-dms-ui-component doesn't work properly witouth Javascript enabled.Please enable it to continue"

In Jmeter, I have used "Recording with Think Time" for an application. Now when i run, in the Response I get message "We are sorry but vue-dms-ui-component doesn't work properly witouth Javascript enabled.Please enable it to continue".
I get this message for all the requests. I have enabled JavaScript in Firefox and then captured the recording.
Attaching the screenshot of the message.
enter image description here
As per JMeter project main page:
JMeter is not a browser, it works at protocol level. As far as web-services and remote services are concerned, JMeter looks like a browser (or rather, multiple browsers); however JMeter does not perform all the actions supported by browsers. In particular, JMeter does not execute the Javascript found in HTML pages. Nor does it render the HTML pages as a browser does (it's possible to view the response as HTML etc., but the timings are not included in any samples, and only one sample in one thread is ever displayed at a time).
So it's not possible to "enable" JavaScript in JMeter.
If JavaScript is being executed on client-side only you can simply ignore this
If JavaScript generates a single network request - you need to mimic it using HTTP Request sampler
If JavaScript generates more than 1 network request at a time - use as many HTTP Request samplers as there are AJAX requests and put them under the Parallel Controller
Don't forget to perform correlation of dynamic parameters as in the vast majority of cases you cannot just replay the recorded network traffic.

Jmeter - Parameters missing

We are using the jmeter recording template to see the api requests by our unsigned app.
When we use charles as the proxy, we are getting all the urls properly.
But when we use the jmeter recording template, we get 'MISSING PARAMETERS' for all GET requests. Essentially, jmeter does not get any parameters that are sent with the GET request.
POST requests work properly.
Any advice?
For convenience JMeter stores the request parameters under "Parameters" section of the HTTP Request sampler
it's better to work with attribute-value pairs for parameterization or correlation purposes than having to edit the URL string which might be very long.
If you replay your recorded request(s) and look into Request tab of the View Results Tree listener you will see that the parameters are concatenated to protocol, domain, etc. in the URL:

Signalr load testing in JMeter

I'm trying to do JMeter script for an application with Signalr protocol.
I'm able to identify connection-token, bearer-token, connection-id and co relate with request using long polling transport and receive message, but after third polling I could not receive the correct response, i'm getting response but not the expected and full response.
Could you please help me what could be the issue here?
I'm afraid no one will be able to help without seeing at least:
Anticipated response
Actual response
Reference requests sequence from i.e. real browser captured with a sniffer tool like Wireshark or Fiddler
The same as point 3 but for JMeter instead of the real browser.
Basically you need to execute points 3 and 4 and compare the generated network requests - they must be the same apart from the dynamic parameters (tokens, connection-id, etc.). Given requests are the same - you should be getting the same responses.
Another option is using While Controller in order to continue polling unless response matches your expectation.

Unable to get security token for Jmeter

I am trying to do some basic performance testing on an app I look after.
I am using Jmeter and done the steps recorder and the same as following Jmeter tutorials on youtube, but I am getting stuck when I need put the variable into the X-CSRF-Token
The issue is I cant find X-CSRF-Token in the captured steps. Is it using some other form of authentication? Any suggestions for me as to other methods would be great.
If the post doesn't make much sense, I don't really have an in-depth knowledge of Jmeter or testing.
To find where the token appeared:
clear browser history
record your scenario using jmeter recording template
then in the view result tree located un HTTP(s) Test Script recorder, use the search field to find the first response in which it appears. You’ll need to add an extractor in the corresponding sampler
you ‘ll then be able to inject it using ${varName}
Depending on your server configuration this X-CSRF-Token can come in:
In the response HTML body
In the response headers, inspect HTTP Header Manager for any hard-coded values
As a HTTP Cookie (which is basically a header as well, however it will be much more convenient to get it from the HTTP Cookie Manager rather than from response headers)
So make sure to inspect all the tabs of the first request in the View Results Tree listener as this X-CSRF-Token guy can hide anywhere.
You can try an alternative way of recording a JMeter test, it can export test in "SmartJMX" mode with automatic detection and correlation of any dynamic parameters including but not limited to CSRF tokens so theoretically it can make your life easier, check out How to Cut Your JMeter Scripting Time by 80% guide for more information and technical details.
If you need further help you will have to provide more details, like full dump of 2 requests along with responses. You can use a sniffer tool like Wireshark or Fiddler to capture it.

Full authentication is required to access this resource

I am getting the following error while searcing for an entity after successful login
Full authentication is required to access this resource unauthorized
I tried to correlate the items in response headers (VCAP_ID, JSESSIONID) but nothing works. I also observed that the
"sessionToken":"Undefined"
Please provide resolution.
First of all try adding HTTP Cookie Manager to your Test Plan
Double check your correlation post processors using Debug Sampler and View Results Tree listener combination to ensure that all variables are properly extracted. The latter one allows inspecting request and response details as well and has i.e. RegExp Tester mode allowing validating your Regular Expressions against server response without having to re-run the request
If after all you won't fell comfortable with handling dynamic parameters in JMeter you can try out an alternative option of JMeter scripts recording which is capable of exporting the recorded test in "SmartJMX" mode automatically detecting and handling any dynamic values. See How to Cut Your JMeter Scripting Time by 80% article for more details.

Resources