Default settings#
The Default settings pane allows you to set the default settings for cookies, headers, requests, and timers for the project:

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:
In the Default settings pane, click
. 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
Set default headers#
Default headers are used in all project requests.
By default, PFLB Platform sends requests with the user-agent header with the Mozilla/5.0 value. To change the standard value of this header:
In the Default settings pane, click
. The window opens:
Change the value for the user-agent header, for example specify Chrome/51.0.2704.103.
Click Apply.
To add default headers:
In the Default settings pane, click
.
Add default headers:
Enter the name of the parameter in the Key field. To enter the name of the parameter in the format
${expression}
, click P and select the parameter. Don’t use spaces in the parameter name.Enter the value of the parameter in the Value field. To enter the name of the parameter in the format
${expression}
, click P and select the parameter.You can select the parameters with the P button, if you have added these parameters in the test project. For more information, see Add parameters to a test.
Click Apply.
To delete the default header, click .
See also
Set request default settings#
To set request default settings, follow these steps:
In the Default settings pane, click
. The window opens:
Click the Save response as MD5 hash toggle if needed.
Fill in the fields:
- Connection timeout. A default timeout before the connection is established to the server or the handshake is executed. If it doesn’t happen within the given time frame, the request is marked as connection timeout. By default, it’s 60.
- Response timeout. A default timeout before the entire body of the response from the server is received. If it doesn’t happen within the given time frame, the request is marked as timeout. By default, it’s 120.
Click Apply.
See also
Configure a default timer#
By default, a default timer is enabled for all test project requests. You can change or turn off the default timer:
In the Default settings pane, click
. The window opens:
To enable the default timer, click the On/off default timer toggle.
Select the timer type:
- Constant. In the Duration field, enter the duration of the timer. Duration is specified in seconds.
- Random. Enter a range of numbers within which a random delay time is selected. A range is specified in seconds.
Click Apply.