Set default cookies#
Cookies are pieces of text sent to your browser by a website you visit. Websites use cookies to identify unique users across browsing sessions.
By default, PFLB Platform works with cookies this way:
It receives cookies from the server and stores cookies’ data at each iteration of the group execution.
It adds these data to all the following requests.
In PFLB Platform, you can also do the following:
Configure cookies that will be used in all requests of the test project. For example, to distinguish requests from PFLB Platform from real users, you can pass the name of the test in a cookie.
Enable the cleanup mode.
To set default cookies, follow these steps:
On the Thread groups tab, click Action ⋮ and select Set default cookies. The window opens:
Fill in the fields:
Name. The unique name of the cookie.
Value. The value of the cookie.
Domain. The name of the host to send the cookie to. Specified without
http(s)://
.Path. The path to the resource on the web server. The default value is
/
.
If needed, select the HTTPS only checkbox so the cookie should only be used over HTTPS, and JavaScript modification isn’t allowed.
Click Apply.
If needed, click the Clear cookies each iteration toggle so that cookies are cleared, and the virtual user should behave like a new user on each iteration of the group’s execution. A new user means the user wouldn’t remember any cookies from this website.
To delete a cookie, click .
See also
PFLB platform speaks for itself
Run a test to see how the platform works in real life. It takes only 15 minutes for a trial test. It easy and you’re gonna love it.