All Products
Search
Document Center

Mobile Testing:Add and import parameters

Last Updated:Jul 10, 2023

This topic describes how to add and import parameters.

Prerequisites

A test case library is created and associated with a specified app. For more information, see Create a test case library.

Add parameters

  1. Log on to the Mobile Testing console.

  2. In the left-side navigation pane, choose Testing Management > Test Case. The Scripts tab appears.

  3. Select a test case library and a test case library version from the Case Library drop-down list.

    image..png
  4. Click the Parameter Pools tab. In the left-side parameter group list, select a group.

  5. On the right side of the page, configure the parameters. For more information, see Add a test case parameter.

Import parameters

  1. Log on to the Mobile Testing console.

  2. In the left-side navigation pane, choose Testing Management > Test Case. The Scripts tab appears.

  3. Select a test case library and a test case library version from the Case Library drop-down list.

    image..png
  4. Click the Parameter Pools tab. In the left-side parameter group list, select a group.

  5. Click Import Parameter. The Import Parameter panel appears.

    导入参数右侧栏1626
  6. Click the upload section and select a parameter list file, or drag a parameter list file to the upload section to batch import parameters.

    Note

    You must use Excel to edit the parameter list file in advance based on the following rules:

    • Each row contains only a single parameter entry. Each parameter can have one or more parameter values.

    • Column A maps to the Parameter Name column.

    • Column B maps to the first parameter value column [0]. Column C maps to the second parameter value column [1].

    参数列表1635

    After you import the parameter list, the parameters are displayed in the lower part of the Import Parameter panel.

    参数列表导入完成1640
  7. Click Merge and Save to add the imported parameters to the parameter group and overwrite the parameters that have the same names as the imported parameters. You can also click Overwrite and Save to clear the existing parameters in the parameter group and save the imported parameters.

    After you click Merge and Save, the imported parameters are appended to the existing parameters in the parameter group.