ASP.Net webapp JMeter login script crashing
It has been a while since I have used JMeter and recently started using it again to test one of our webapps here. This is a pretty standard ASP.Net 4 application, nothing crazy. I ran a simple test script to make sure the login works as expected, but I cannot get this to work.
The steps are pretty simple:
/login.aspx /default.aspx /logout.aspx /login.aspx
For the first call to login.aspx, I include two parameters in the POST parameter to get the expected username and password values. In my view of the result tree, this step includes the correct POST details and login parameters.
However, once it moves one step
, I only get one response:
<html><head><title>Object moved</title></head><body> <h2>Object moved to <a href="/timeout.aspx">here</a>.</h2> </body></html>
It then adds a step that calls a page
that produces the following response:
<html><head><title>Object moved</title></head><body> <h2>Object moved to <a href="/login.aspx">here</a>.</h2> </body></html>
Then it calls the page
. This is the correct behavior if the user no longer logs in (meaning that a particular session value is no longer valid or has been deleted) ... it redirects to
, which then navigates to
. The question is why this is happening, as this is not what is happening in the browser.
I have an HTTP Cookie Manager to store session values and the session cookie is displayed in a step request.
I thought I was screwing something up, so I wrote a test script with an HTTP proxy and it gave me the same steps and results as when I created it manually, so I got stuck at this step. I double checked the website script tutorials on the JMeter site as well as on the internet and it should work.
Any ideas? Any help would be appreciated.
source to share
Make sure your cookie manager is enabled if you are using cookies. http://jmeter-tips.blogspot.com/2010/02/tip-7-how-to-add-cookies-support-to.html
source to share