All Products
Search
Document Center

Performance Testing:Manage scenarios

Last Updated:Nov 01, 2024

Performance Testing Service (PTS) provides a range of scenario management features to enhance scenario orchestration efficiency. The features include replicating scenarios, replicating APIs, and managing the validity of business sessions.

Replicate scenarios

When multiple performance testing scenarios are identical or similar, you can replicate an existing scenario and make slight adjustments to create a new one. To replicate a scenario, perform the following steps:

  1. Log on to the PTS console and choose Performance Test > Scenarios.

  2. On the Scenarios page, find the scenario that you want to replicate and click Duplicate in the Actions column. In the message that appears, click Duplicate.

    By default, the name of a replicated scenario is suffixed with_Copy.

    Note

    For ease of reading, the name of a scenario is limited to 30 characters. If the name of a scenario exceeds 30 characters after you add the _Copy suffix, the _Copy suffix is removed.

Manage the validity of business sessions

A scenario may contain multiple business sessions. In some cases, you may need to debug or conduct performance testing on only a subset of these sessions. In this case, you can validate or invalidate specific sessions to improve the testing efficiency. After you validate a business session in a scenario, the session is excluded from the debugging and performance testing process for the scenario, but retains all its existing configurations.

  1. Log on to the PTS console and choose Performance Test > Scenarios.

  2. On the Scenarios page, find the scenario that you want to edit and click Edit in the Actions column.

  3. Find the business session whose validity you want to manage and choose ... > Invalid or Valid.image

    After you invalidate a business session, its name and icon turn gray.

Replicate APIs

Multiple business sessions in a scenario may use the same API. In this case, you can directly replicate the API to improve editing efficiency and accuracy.

  1. Find the API that you want to replicate and choose ... > Copy API.image

  2. Go to the business session to which you want to add the API, find the API that precedes the location where you want to add the API and then choose ... > Paste API.

Merge scenarios

If you have multiple scenarios, you can merge them into a new scenario. After merging, the business sessions in each scenario are executed in parallel in the new scenario.

  1. On the Scenarios page, select the scenarios that you want to merge and click Merge Scenarios in the lower-left corner.

  2. In the dialog box that appears, specify a name for the new scenario, select a test mode, and then click Merge Scenarios.

  3. On the Edit Scenario page, configure the scenario and load settings.