nav-img
Advanced

How Do I Check If the Global Variable Values Are Read Sequentially in a Test Task?

Perform the following steps:

  1. Create a global variable. It is recommended that the number of its values be no more than 10 (for example, 6, 5, 4, 3, 2, and 1) for quick testing.
  2. Create a test task and add a normal test case. Add a request and the response extraction should contain the global variable created in 1. Add a phase, set Execution Policy to Count, set the number of concurrent users to 1, and set the total number of transmissions to 10. Then start the test task.
  3. In the real-time report or offline report, view the logs. Check whether the global variable values are read in the configured sequence.

    When reading proceeds to the last value, it will start from the first value again.