In the same scenario, if you need to configure multiple scripts and proportionally allocate the number of VUs based on different weights, you can use the multi-script performance testing mode for more flexible script customization and pressure configuration.
Basic Usage
Log in to the TCOP console, select PTS > Test Scenarios in the left navigation bar, and click Create Scenario. In the Script Mode scenario, as shown in the figure below, open the Multi-script Navigation Bar to add a new script: On the page for creating a script, enter the name and weight of the new script.
If you need to modify the original script, edit it on the right side of the multi-script sidebar or delete it.
Load Distribution Rules
When the performance testing task is executed, PTS will calculate the percentage of each script's weight to the total weight of all scripts to allocate the load intensity:
In concurrent mode, the VU for each script will be allocated according to the percentage of the script's weight to the total weight.
In RPS mode, the RPS for each script will be allocated according to the percentage of the script's weight to the total weight.