I have used the URL Recorder to record my login and simple navigation. However; when the script runs the authentication cookie is not valid, Therefore the Forms Authentication routine redirect all subsequent requests back to the login form again.


Article Comments

There is no standard solution for this situation.

For some types of session management used by the web application/web server you can not simply record a browser session and replay it afterwards.

Cookie Based Session Management

If the session tracking is based on a cookie then it should work fine, all you have to do is enable "Use Cookies" in Webstress' options.

Token or Form Field Based Session Management

But when the session management is based on a FORM field or a part of the URL it will not work. Webstress will record these parameters during the recording session and will replay the session id from the recording session for each simulated user.

For these web applications you must create a "URL Script" manually - which can quickly become quite complex. This article explains how you can extract a session token from a page and reuse it for further requests.

How can I re-use data from the HTML code of a webpage in Webserver Stress Tool?

More Information about Simple URL Sequences and URL Scripts:

Using Simple URL Sequences

Using Custom URL Scripts for Advanced URL Sequences


Mar, 2011 - Permalink