然后,在测试用例的steps
就可以采用如下形式对全局参数进行引用。
1
2
3
4
5
6
7
8
9
10
11
12
13
|
---
AccountSteps:
input test EmailAddress:
control_id: txtfieldEmailAddress
control_action: type
data: ${config.TestEnvAccount.UserName}
expectation: sectxtfieldPassword
input test Password:
control_id: sectxtfieldPassword
control_action: type
data: ${config.TestEnvAccount.Password}
expectation: btnLogin
|
原文转自:http://debugtalk.com/post/build-ideal-app-automation-test-framework/