然后,在測試用例的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/