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.
In Webstress when I use a URL set from the URL recorder the logins are not replayed properly
Modified on 2025-06-10 11:58:20 +0200
Disclaimer:
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.
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