I\'m a .net developer having no prior experience in JMeter/Stress testing. I\'m trying to load test the ASP.net website that I had developed using JMeter. The reason for using J
Http 500 is. A server error code so it is not your script that's is failing what has to be done is a tag in the .aspx to disabled the security I faced this some months ago
txtLogin = $(login)
, txtPassword = $(password)
, ...$(VAR_NAME)
is incorrect, ${VAR_NAME}
should be used.viewstate
and eventValidation
were extracted from your request and your regex queries work correctly.txtLogin
, txtPassword
, __VIEWSTATE
, __EVENTVALIDATION
) with correct values are sent along with request.In step 5, change as follows
Name: - Value
txtLogin - ${login}
txtPassword - ${password}
__VIEWSTATE - ${viewState}
__EVENTVALIDATION - ${eventValidation}
Also verify, regular expression extractor is working as required. I mean check if it is fetching correct values.
I used CSS/JQuery Extractor and it worked for me. With regex extractor for view state {viewState} variable was getting passed and got view state corrupt error message.
parameters to be set in CSS/JQuery extractor are :-
Reference Name: viewState
CSS/JQuery Expression: input[id=__VIEWSTATE]
Attribute: value
The steps i followed are :-
In post request of login page add body parameters as follows and run the batch.
Name: - Value
txtLogin - ${login}
txtPassword - ${password}
__VIEWSTATE - ${viewState}
__EVENTVALIDATION - ${eventValidation}