All Products
Search
Document Center

Performance Testing:Parameters

Last Updated:Nov 01, 2024

You can use the parameter feature of PTS to implement various dynamic operations in test requests in scenarios such as simulating different user logons and passing test business parameters. This topic describes the parameter types supported in PTS and how to use them.

Parameter types

When you set test requests in PTS, you can use the following parameter types.

Parameter type

Level

Description

File parameters

Global

Add the associated parameters to different columns of a file and upload the parameter values by loading the file. File parameters are used together with the data configuration node. For more information, see File data sources.

Custom parameters

Global

You can combine strings and system functions into a custom variable for global scenarios. This variable is suitable for scenarios where you need to frequently modify certain settings, such as header settings. For more information, see Custom parameters.

System functions

Global

Include encryption functions, random functions, four operations functions, and other commonly used functions. They can be used to reprocess strings, global custom variables, and business session variables. For example, you can create an MD5 signature for the UID returned by the frontend interface. For more information, see Use system functions.

Global headers

Global

Set the same header for all APIs in all test scenarios. For more information, see Global headers.

Business session headers

Business session

Set the same header for all APIs in the business session. For more information, see Set business session headers.

Data export parameters

N/A

After the parameters in the business session are exported, they can be used by other business sessions. For more information, see Data exporting instructions.

Data instructions - Custom parameters

Business session

These custom parameters are defined with data instructions. You can define common parameters or output parameters again as custom parameters. For more information, see Data instructions.

Data configuration - Custom parameters

Business session

These custom parameters are defined in data configuration. You can define common parameters or output parameters again as custom parameters. For more information, see Data configuration instructions.

Output parameters

Business session

When you create a business session, the returned data of the frontend interface is used as parameters. For more information, see Interface output parameters.