nav-img
Advanced

Managing Test Projects

Renaming and Deleting a Test Project

CPTS allows you to modify and delete the name of a created test project.

  1. Log in to the CPTS console and choose CPTS Test Projects in the navigation pane on the left.
  2. In the CPTS test project list, click More next to a project and then click Modify. Enter the project name or description and click OK.
  3. In the CPTS test project list, click Delete next to a project. Delete the test project as prompted.

Exporting a Test Project

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

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

    Note

    If SLA rules have been configured for a test project, the SLA rules will not be exported when you export the project.

  3. Modify all project names in the file (the project name must be unique) and save the file.

    "New Project": {
    "Project Name": "web-test",
    "Project Description": "cc"
    Note
    • Do not change the format of the ProjectList(serial number).json file.
    • The project name can only contain letters, digits, hyphens (-), underscores (_), or periods (.).
    • If the name of the project to be imported already exists in CPTS, the project fails to be imported and the message "The project name already exists" is displayed.

Importing a Test Project

Test projects of CPTS and JMeter type can be imported to CPTS.

  1. Log in to the CPTS console, choose CPTS Test Projects in the left navigation pane, and click Import Project.
  2. Import a CPTS project.

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

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

  3. Import a JMeter project.

    Note
    1. Set Project Type to JMeter script import.
    2. Click Select File, select a project file in .jmx format, and click Import.

  4. When the project is imported, you can modify the test project by referring to Renaming and Deleting a Test Project and Managing Transaction Request Information.