All Products
Search
Document Center

Performance Testing:PTS read method of multi-file parameters in virtual user or RPS mode

Last Updated:Oct 30, 2024

This topic describes how Performance Testing Service (PTS) reads multi-file parameters in virtual user or requests per second (RPS) mode.

Read example of an API file in virtual user mode

  • File read method

    • If the used parameters come from multiple files, you can set the benchmark parameter. PTS first assembles the parameters based on the number of lines of the benchmark parameter.

    • If you specify that a parameter is used once, the parameter is used as the benchmark parameter. If you have set the benchmark parameter, you can also specify whether to use the parameter once. You can configure a pre-testing session on the Scenario Settings tab.

    • In virtual user mode, each virtual user reads new data and sends a new request after completing the current request (including receiving the response or the timeout).

  • Specify the file that contains a small number of parameter lines as the benchmark file

    image

  • Specify the file that contains a large number of parameter lines as the benchmark file

    image

Read example of an API file in RPS mode

  • File read method

    • If the used parameters come from multiple files, you can set the benchmark parameter. PTS first assembles the parameters based on the number of lines of the benchmark parameter.

    • If you specify that a parameter is used once, the parameter is used as the benchmark parameter. If you have set the benchmark parameter, you can also specify whether to use the parameter once. You can configure a pre-testing session on the Scenario Settings tab.

    • In RPS mode, a fixed number of requests are evenly sent per second (current load value). If the requests are processed fast, less virtual users are required. Otherwise, more virtual users are required.

  • Specify the file that contains a small number of parameter lines as the benchmark file

    image
  • Specify the file that contains a large number of parameter lines as the benchmark file

    image