如何传递黄瓜命令的超时,如在start_test_server_in_background(:timeout => 30) [英] How to pass in timeout for cucumber command as in start_test_server_in_background(:timeout => 30)
问题描述
在探索发布问题几天后,我发现是否使用
After digging around for a few days for the launch issue, I found out if I use
start_test_server_in_background(:timeout => 300 )
应用程式将会成功启动。
the app will be fully launched successfully.
,问题变成了,如何通过黄瓜命令行的超时?
So for calabash command, the question become, how to pass in the timeout for cucumber command line?
我试过下面的黄瓜版本0.9.167,它不工作。
I tried the following for cucumber version 0.9.167 and it's not working.
$ CONNECT_TIMEOUT = 300 DEBUG = 1 CALABASH_FULL_CONSOLE_OUTPUT = 1 cucumber
推荐答案
CONNECT_TIMEOUT
< ==控制等待服务器响应http请求的时间
CONNECT_TIMEOUT
<== controls how long to wait for the server to respond to an http request not how long it wait for a launch.
更新您的 features / support / 01_launch.rb
以使用:
Calabash :: Cucumber :: Launcher.relaunch({:timeout => 300})
我怀疑启动您的应用需要30多秒。
I am suspicious that it takes more than 30s to launch your app.
如果可能更新到最新版本的葫芦。
If at all possible update to latest version of calabash.
UPDATE:已发布calabash环境文件。
UPDATE: The calabash environment docs have been posted.
http://calabashapi.xamarin.com/ios/
小心调整变量在开发人员部分。
Beware of tweaking the variables in the Developer section.
这篇关于如何传递黄瓜命令的超时,如在start_test_server_in_background(:timeout => 30)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!