- 入门指南
- 项目管理
- 项目操作和实用程序
- Test Manager 设置
- ALM 工具集成
- API 集成
- 故障排除
Test Manager 用户指南
创建参数
您可以为测试集中的每个测试用例创建参数。您最多可以添加 250 个参数,并且每个参数都需在测试用例的上下文中具有唯一名称。
参数只能是String类型。
- 打开要向其中添加参数的测试用例。
- 转到“参数”选项卡。
- 选择“创建参数”并填写以下字段:
- 名称- 为参数提供唯一名称。
命名参数时,可以使用字母、数字、空格以及以下字符: - 、 _ 、 ,和. 。
For example, name the parameter as adminName. 2. Default value - Type the default value of the parameter.
请记住,参数类型只能是String 。
此“默认值”字段不是必填项,因此,如果将其留空,则参数将为空字符串。
For example, set the default value to JohnDoe. 3. Hint - Offer additional information about the information that the parameter holds.
For this example, add the following hint: The supervisor of the organization. 4. Select Create to create the parameter.
编辑参数
创建参数后,您可以根据用例编辑它们。
- 打开要编辑参数的测试用例。
- 转到“参数”选项卡。
- 选择要编辑的参数旁边的“编辑” 。
- 在“编辑参数”窗口中,更新要更改的字段。
- 选择“保存”以保存更改。
在手动测试中使用参数
您可以在手动或自动测试中使用参数与为每个测试用例设置的默认值。或者,您可以覆盖测试集中测试用例的默认参数值。有关覆盖参数值的信息,请访问覆盖参数。
- 创建一个新的测试用例。
- 根据要使用的执行类型,请按照以下步骤操作:
- 手动执行:
- 转到“手动步骤”选项卡,然后添加手动步骤。
- 要将参数引用到手动步骤中,请在双大括号之间输入其名称。
- 手动执行:
例如,要在手动步骤中添加username参数,请将其引用为{{username}} 。

- Automated execution: During the automated execution of a test set, the Studio arguments from the automation (corresponding to each test case) are automatically applied (as parameters) in Test Manager, at test-set level for each test case added in the test set.
In Test Manager, parameters created for test cases do not automatically map to the arguments defined in the Studio automation, even if they share the same name. Test Manager parameters operate independently from the arguments defined in Studio. When you create a parameter in Test Manager, it does not automatically pass its value to the Studio automation during execution. The intended workflow is to use overriding parameters from the test-set level.