The EveryStep Web Recorder by Dotcom-Monitor supports sending user-defined cookies, along with test requests, to a target URL or domain. For example, you can add user-defined cookies to distinguish test script requests generated by Dotcom-Monitor from requests generated by real users.
To specify custom information that you want to pass along in the cookies:
- Record the script with EveryStep Web Recorder.
- Right-click a line (step) in the Script Code section and from the editor context menu, select Network > Set Cookie.
- Specify an URL, name, and value on the editing pane, located to the left of the script code area. Please, see a full definition of the SetCookieForUrl method.
If the SetCookieForUrl method is used, the cookie with the provided name-value pair will be added to each request to the URL that is specified in the method settings. To filter out a specific cookie from requests to a specific URL, provide the following cookie value in the Value field of the Set Cookie method settings:
For example, the following code will filter out the cookie with the cookie_name name in all requests to https://www.site.org:
SetCookieForUrl ("https://www.site.org", "cookie_name", null);