0
我對葫蘆或黃瓜是全新的。 任何人都可以幫我寫葫蘆黃瓜從表中輸入用戶名和密碼的步驟定義?適用於android的黃瓜步驟定義
我需要做這樣的事情:
Scenario Outline: check for Login
Then I enter <username> into input field number 1
Then I enter <pass> into input field number 2
Then I press "Login"
Then I should see <msg>
Then I wait for 2 seconds
Examples:
| username | pass| msg|
| [email protected] | pass1212 | Incorrect Username and/or password|
| [email protected] | first212 | Incorrect Username and/or password|
| [email protected] | second1234 | Incorrect Username and/or password|
| [email protected] | qwerty | success |
這樣做我需要寫步驟定義,但我不知道怎麼寫呢,在哪裏寫呢?
我在功能文件夾中看到了step_defination.rb文件,所以我需要在該文件中寫入定義還是需要創建另一個文件?
[如何編寫Calabash Android的步驟定義]可能的副本(https://stackoverflow.com/questions/18997808/how-to-write-step-definition-of-calabash-android) –