All Products
Search
Document Center

Mobile Testing:Add or import parameters

Last Updated:Feb 28, 2022

Prerequisites

Add parameters

Step 1: On the Use Cases page of the specified app, click the Parameter Pools tab.

Step 2: Select a use case library version from the Use Case Library Version drop-down list or use the default version.

Note

Use case library versions must be configured in advance. For more information, see Create a use case library version.

Step 3: Select a parameter group from the left-side parameter group list.

Step 4: Click Add Parameter to add a row to the parameter list.

By default, a parameter row contains a parameter name in the Parameter Name column and a parameter value in the [0] column.

Step 5: If you want to set multiple parameter values, click Add Parameter Value.

Step 6: Click the Edit icon next to a parameter name in the Parameter Name column, modify the parameter name, and then save it.

Note

The parameter name can contain only letters, digits, and underscores (_).

Step 7: Click the Edit icon in a parameter value column, enter a parameter value, and then save it.

Add Parameter

Import parameters

Step 1: On the Use Cases page of the specified app, click the Parameter Pools tab.

Step 2: Select a use case library version from the Use Case Library Version drop-down list.

Note

Use case library versions must be configured in advance. For more information, see Create a use case library version.

Step 3: Select a parameter group from the left-side parameter group list.

Step 4: Click Import Parameter. The Import Parameter panel appears.

Import Parameter panelStep 5: Click the upload section to select a parameter list file or drag a parameter list file to the upload section to batch import parameters.

Note

The parameter list file must be edited by using Excel in advance. Encoding 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]. More parameter values can be set in the same manner.

Parameter list

After the parameter list is imported, the parameters are displayed in the lower part of the Import Parameter panel.Parameters imported

Step 6: 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 ones. Alternatively, click Overwrite and Save to clear the existing parameters in the parameter group and save the imported ones.

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

Merge and Save