Updated on 2025-12-23 GMT+08:00

Managing PerfTest Cases

Debugging a Test Case

After you create or edit a test case, you can debug it to detect syntax or configuration errors before pressure testing.

  1. Log in to the CodeArts PerfTest console.
  2. In the navigation pane, choose PerfTest Projects.
  3. Click the name of the desired PerfTest project to go to the details page.
  4. In the case list on the left of the Cases tab, click the test case you want to debug.
  5. Click Debug in the upper right corner of the page.
  6. Select the target test resource group as the executor and click Start to start debugging.
  7. Click View log to view the test case debugging details.

    If an error is reported in the debugging result, edit the case based on the log information and debug it again.

  8. On the Debug log tab, view the debugging history.

Resetting Configurations

When you modify a test case, you can reset the configurations that are not yet saved.

  1. In the case list on the left of the Cases tab, click the test case you want to configure.
  2. Click in the upper right corner of the page. In the displayed dialog box, click OK.

Copying a Test Case

  1. In the case list on the left of the Cases tab, locate the test case you want to copy.
  2. Click next to the case, and choose Copy from the pop-up menu.

    Figure 1 Copying a case

  3. Click next to the destination directory, and choose Paste from the pop-up menu.

    Figure 2 Pasting a case

  4. Click Save.

Moving a Test Case

  1. In the case list on the left of the Cases tab, locate the test case you want to move.
  2. Drag the case to move it to a new directory.

    You can also click next to the case, and choose Cut from the pop-up menu.

    Figure 3 Cutting a case

    Click next to the destination directory, and choose Paste from the pop-up menu.

    Figure 4 Pasting a case

Deleting a Single Test Case

  1. In the case list on the left of the Cases tab, locate the test case you want to delete.
  2. Click next to the case, and choose Delete from the pop-up menu.
  3. Click OK.

Deleting Test Cases in Batches

  1. In the case list on the left of the Cases tab, select multiple cases or directories.
  2. In the floating box displayed at the bottom of the page, click Delete.
  3. Click OK.

Starting Test Cases in Batches

The case list supports batch operations, which apply only to test cases (including those inside a directory, but excluding the directory itself).

  1. In the case list on the left of the Cases tab, select multiple cases or directories.
  2. In the floating box displayed at the bottom of the page, click Start.
  3. In the displayed Executing Temporary Test Task dialog box, modify the parameters of the temporary task.

    Table 1 Temporary test task parameters

    Parameter

    Description

    Temporary Task Name

    The current cases will not generate a permanent test task. The generated report will be displayed on the Performance Reports tab as a temporary task report and automatically deleted 30 days later.

    Execution Mode

    Select Serial or Parallel.

    Resource Group Type

    Select Shared resource group or Private resource group.

  4. Select Confirm that this pressure test is approved and complies with local laws.
  5. Click Start to execute the temporary task.
  6. After the test cases are started, click View Report to check the real-time performance report.

    You can also switch to the Performance Reports tab in the upper left corner and click Temporary Task List to find the report by task name.