All Products
Search
Document Center

Mobile Testing:Manage test cases

Last Updated:Jul 11, 2023

This topic describes how to manage performance test cases.

Background information

To save the data of a performance test, you must create a test case before the test starts or after the test is complete. You can apply for a remote device for performance testing. For more information about the test procedure, see the "Run a performance test" section in Remote debugging.

Create a directory

  1. In the left-side navigation pane, choose Testing Services > Performance Testing.

  2. The first time you create a directory, the Test Case hierarchy tree on the Performance Testing page is empty. In this case, click Create Directory. You can also click the More icon to the right of Test Case and select Create Directory. The Create Directory dialog box appears.新建用例1424

  3. In the Create Directory dialog box, configure the parameters. The following table describes the parameters.

    Parameter

    Description

    Parent Directory

    The parent directory in which to create the directory.

    Directory Name

    The name of the directory.

    The name must be 2 to 50 characters in length.

    The name can contain letters, digits, underscores (_), and hyphens (-).

    Important

    Directories of the same level cannot have the same name.

  4. Click OK.

    After the directory is created, you can view the directory in the Test Case hierarchy tree on the Performance Testing page.

Create a test case

  1. The procedure for creating a test case varies based on whether a directory is created.

    • If a directory is already created, move the pointer over the directory in the Test Case hierarchy tree, click the More icon, and then select Create Test Case to create a test case in the directory.新建用例1430

    • If no directory is created, the Test Case hierarchy tree on the Performance Testing page is empty. In this case, click Create Test Case. You can also click the More icon to the right of Test Case and select Create Test Case. The Create Test Case dialog box appears.新建用例1428

  2. In the Create Test Case dialog box, configure the parameters. The following table describes the parameters.

    Parameter

    Description

    Parent Directory

    The parent directory in which to create the test case.

    Note

    After the test case is created, you can drag the test case to another parent directory.

    Test Case Name

    The name of the test case.

    The name must be 2 to 50 characters in length.

    The name can contain letters, digits, underscores (_), and hyphens (-).

  3. Click OK.

Manage test cases

  1. Move the pointer over an existing directory and click a shortcut icon to manage the directory.编辑目录1122

    Icon

    Sub-option

    Description

    目录的快捷菜单

    Create Test Case

    Creates a test case in the current directory.

    Create Directory

    Creates a subdirectory in the current directory.

    编辑

    -

    Renames the current directory.

    删除

    -

    Deletes the current directory.

    Important

    After a directory is deleted, test cases in the directory are also deleted and the data cannot be restored. Exercise caution when you delete a directory.

  2. Move the pointer over an existing test case and click a shortcut icon to manage the test case.编辑用例1122

    Icon

    Description

    编辑

    Renames the current test case.

    删除

    Deletes the current test case.

    Important

    After a test case is deleted, the data of the test case cannot be restored. Exercise caution when you delete a test case.

  3. Drag an existing directory or test case to the appropriate storage location.