Updated on 2024-06-06 GMT+08:00

Managing Test Projects

After a test project is created, you can modify, delete, import or export it.

Modifying a Test Project

  1. Log in to the CodeArts PerfTest console and choose PerfTest Projects in the left navigation pane.
  2. In the PerfTest project list, choose , enter the project name or description, and click OK.

Deleting a Test Project

  1. Log in to the CodeArts PerfTest console and choose PerfTest Projects in the left navigation pane.
  2. In the PerfTest project list, choose > Delete Project. Delete the test plans as prompted.
  3. You can also select one or more test projects, click Delete, and delete them as prompted.

Modifying a Tag

  1. Log in to the CodeArts PerfTest console and choose PerfTest Projects in the left navigation pane.
  2. In the PerfTest project list, choose > Modify Tag. The Resource Tags page is displayed. For details, see Configuring Resource Tags.

Exporting a Test Project

You do not need to write a test project from scratch. Instead, find a project similar to the service model, export the test project, slightly modify it, and import the test project.

  1. Log in to the CodeArts PerfTest console and choose PerfTest Projects in the left navigation pane.
  2. Select one or more projects to be exported from the PerfTest project list, and click Export. Then save the exported test project file ProjectList(Serial number).json to the local host.

    • If SLA rules have been configured for a test project, the SLA rules will not be exported when you export the project.
    • If a file is uploaded for a global variable, the corresponding file will not be exported when you export the test project.
    • Scalable test projects cannot be exported.
    • Projects that use the MQTT protocol cannot be exported.

  3. Modify parameters and the project name (the name must be unique) in the file as required, and save the file.

    Do not change the format of the ProjectList(Serial number).json file.

Importing a Test Project

Test projects of PerfTest and JMeter can be imported to CodeArts PerfTest.

  1. Log in to the CodeArts PerfTest console, choose PerfTest Projects in the left navigation pane, and click Import.
  2. Import a PerfTest project.

    1. Set Project Type to PerfTest project.
    2. Click Select File, select a project file in JSON format, and click Import.

      The name of the imported project must be unique in CodeArts PerfTest. Otherwise, the project cannot be imported.

      Projects that use the MQTT protocol cannot be imported.

  3. Import a JMeter project.

    • Ensure that the fields in the JMeter script are supported in CodeArts PerfTest. For details, see Mapping Between JMeter and PerfTest Fields.
    • JMeter parses the following contents: thread group, HTTP request, HTTP header manager, regular expression extractor, user parameter, user-defined variable, default HTTP request value, and fixed timer.
    • Random variables are not supported.
    • To ensure the accuracy of data import, do not use variables with the same name.
    • A JMeter script cannot exceed 5 MB in size.
    1. Set Project Type to JMeter project.
    2. Click Select File, select a project file in .jmx format, and click Import.

  4. After the project is imported, click Close. You can modify the test project by referring to Modifying a Test Project and Managing Transaction Request Information.

Viewing a Test Project

You can view the existing projects.

  1. Log in to the CodeArts PerfTest console and choose PerfTest Projects in the left navigation pane.
  2. Enter a test project name in the search box in the upper right corner to search test projects.

    You can also select a range to view test projects from the drop-down list .

    • All: Displays all projects within the current user's permission scope, including projects created by subaccounts.
    • my project: Displays only projects created by the current account.