我的同事成功地使用这种组合来编写我们的测试并且他们工作得很好:
cucumber (1.2.5)
calabash-android (0.4.3)
gherkin (2.11.8)
ruby (1.8.7)
但是,我们正在升级并且测试不适用于这种组合:
cucumber (1.3.10)
ruby (2.0.0)
gherkin (2.12.2)
calabash-android (0.4.18)
我收到以下错误:
鉴于我的应用程序正在运行
鉴于我设置TestSessionToken
为hrn_token
然后我等待 10 秒
鉴于我等着看文字“欢迎”
**Step unsuccessful: Time out while waiting for text:Welcome (RuntimeError)
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/timeout.rb:66:in timeout'
./features/step_definitions/calabash_steps.rb:41:in/^I wait to see text "([^\"]*)"$/'
features/shared_features/010_welcomescreen/000_test.feature:13:in `Given I wait to see text "Welcome"'**
在进一步的测试中,我开始收到KeepAliveDisconnected
/Timeout
错误:
鉴于我等着看文字“欢迎”
**HTTPClient::KeepAliveDisconnected (HTTPClient::KeepAliveDisconnected)
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/timeout.rb:66:in timeout'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/timeout.rb:97:intimeout'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/timeout.rb:66:in timeout'
./features/step_definitions/calabash_steps.rb:41:in/^I wait to see text "([^\"]*)"$/'
features/shared_features/010_welcomescreen/999_moveon.feature:9:in `Given I wait to see text "Welcome"'**
谢谢