【发布时间】:2017-10-12 06:57:57
【问题描述】:
我对葫芦或黄瓜完全陌生。 谁能帮我写葫芦黄瓜从表中输入用户名和密码的步骤定义?
我需要这样做:
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|
| hekidh@gmail.com | pass1212 | Incorrect Username and/or password|
| sdgh@gmail.com | first212 | Incorrect Username and/or password|
| xyx@gmail.com | second1234 | Incorrect Username and/or password|
| abc@gmail.com | qwerty | success |
为此,我需要编写步骤定义,但我不知道如何编写以及在哪里编写?
我在功能文件夹中看到了 step_defination.rb 文件,所以我需要在该文件中写入定义还是需要创建另一个文件?
【问题讨论】:
标签: ruby cucumber ui-automation calabash-android