【发布时间】:2014-04-08 00:32:09
【问题描述】:
我是Calabash的新手,很遗憾,没有编程经验,所以我希望人们对我有耐心并提供明确的答案。
在登录页面上,我可以成功地检查...
- 电子邮件地址字段
- 密码字段
但我似乎无法测试...的存在和启用状态...
- 登录按钮
- 隐藏按钮(隐藏或显示输入的密码)
- 密码帮助和恢复按钮
使用query("*"),我可以获得所有ID,但我对用于测试的实际查询命令感到困惑。
这是我迄今为止的测试:
Feature: Sign In appearance
Scenario: Upon launch, all elements of the login page should appear correctly
Then I see "Email Address"
Then I see "Password"
Then I see "button marked:'Sign In'"
这会产生以下结果:
Then I see "button marked:'Sign In'" # calabash-android-0.4.20/lib/calabash-android/steps/assert_steps.rb:5
Action 'assert_text' unsuccessful: Text'button marked:'Sign In'' was not found (RuntimeError)
features/Login_appearance.feature:6:in `Then I see "button marked:'Sign In'"'
Failing Scenarios:
cucumber features/Login_appearance.feature:3
我该怎么做?
【问题讨论】:
标签: android automation automated-tests android-testing calabash