I am a newbie in jmeter tool. I want to test login to an asp.net website. But I was not successful after 2 days of search through the internet.
I am listing below the steps that I followed:
- Add an
HTTP Request Defaults
. - Add an
HTTP Cookie Manager
. - Add two
Regular Expression Extractor
forEVENTVALIDATION
andVIEWSTATE
. Add HTTP URL Re-writing Modifier with
ASP.NET_SessionId
(checked thePath Extension
andCache Session Id
).There are two pages, one is
Login Get Page
and another isLogin POST Page
. In Login Post Page, I've added the following parameters:- UserName :
realUser
- Password :
realPassword
- __VIEWSTATE :
name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="(.+?)"
- __EVENTVALIDATION :
name="__VIEWSTATE" id="__VIEWSTATE" value="(.+?)"
- LoginButton :
Log+In
- UserName :
Add a
View Results Tree
.
I've explored the following links but not successful.
- load-testing-aspnet-with-jmeter.html
- load-testing-aspnet-sites-with-jmeter.html
- ASPNETViewState
- Load Testing ASP.NET Web Applications using Jmeter
Current Output:
What am I missing?
Any suggestion please.
Update:
Test plan tree structure:
Login Details:
Login Request Tab: