Default settings#

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

../_images/um_default_settings.cloud.png

Set default headers#

Default headers are used in all test 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:

  1. In the Default settings pane, click headers_button. The window opens:

    ../_images/um_set_default_headers.en.png
  2. Change the value for the user-agent header, for example specify Chrome/51.0.2704.103.

  3. Click Apply.

To add default headers:

  1. In the Default settings pane, click headers_button.

  2. Add default headers:

    1. 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.

    2. 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.

      ../_images/um_select_parameter.png

      You can select the parameters with the P button, if you have added these parameters in the test. For more information, see Add parameters to a test.

  3. Click Apply.

To delete the default header, click delete_button.

Set request default settings#

To set request default settings, follow these steps:

  1. In the Default settings pane, click request_settings_button. The window opens:

    ../_images/um_default_request_settings.en.png
  2. Click the Save response as MD5 hash toggle if needed.

  3. 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.

  4. 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:

  1. In the Default settings pane, click timer_button. The window opens:

    ../_images/um_default_timer.en.png
  2. To enable the default timer, click the On/off default timer toggle.

  3. 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.

  4. Click Apply.