All Products
Search
Document Center

Performance Testing:Global headers

Last Updated:Nov 01, 2024

If all requests in the whole stress testing scenario require the same header, you can configure a global header.

Procedure

For example, when you perform stress testing on a page, you can create two stress testing scenarios to compare the performance of the page in the Chrome and Firefox browsers. You can also configure a global header in each stress testing scenario to identify the scenario to which each request belongs.

To configure a global header, perform the following steps on the Parameters page:

  1. Log on to the PTS console, choose Performance Test > Create Scenario, and then click PTS.

  2. On the PTS Scenario page, click Parameters in the lower part of the page.

  3. In the Parameters panel, click the Global Header tab.

  4. On the Global Header tab, configure the name and Value parameters. The following figure shows two sample values.

    Important

    You must specify a value for the Value parameter. A parameterized expression cannot be parsed.

    image

    • In the name field, PTS displays common HTTP request headers returned by fuzzy matching based on the specified value. You can select the required header from the drop-down list.

    • Click Text Format in the upper-right corner of the Global Header tab to view the entered names and values. You can also write multiple headers at the same time in the Text Format field. Example:

      explorer_identification : chrome
      Cookie : 123abc