If you use the desktop version of EveryStep Scripting Tool and need to send user-defined cookies along with the web application test requests, you need to manually add the SetCookieForUrl method to the script. See the full definition of the SetCookieForUrl method in our wiki.
If the SetCookieForUrl method is used, the cookie with the provided name-value pair will be added to each request that is sent to the URL while executing the EveryStep script.
First, start the EveryStep Scripting Tool Desktop and follow the recommendations below:
- Record a new script or load a previously created device from the Dotcom-Monitor platform or local machine (the Load Device button on the left-hand sidebar).
- Enable the Allow to edit script manually feature in the Advanced Settings menu.
- To specify user-defined cookies, add the following method to the script and set its parameters:
SetCookieForUrl("<URL>", "<Name>", "<Value>");
For example, you can add user-defined cookies to distinguish test script requests generated by Dotcom-Monitor versus requests generated by real users.