1

在为启动问题挖掘了几天后,我发现我是否使用

start_test_server_in_background(:timeout => 300)

该应用程序将成功启动。

那么对于calabash 命令,问题就变成了,如何传入cucumber 命令行的超时时间?

我为黄瓜版本 0.9.167 尝试了以下方法,但它不起作用。

$ CONNECT_TIMEOUT=300 DEBUG=1 CALABASH_FULL_CONSOLE_OUTPUT=1 cucumber

4

1 回答 1

1

CONNECT_TIMEOUT <== controls how long to wait for the server to respond to an http request not how long it wait for a launch.

Update your features/support/01_launch.rb to use:

Calabash::Cucumber::Launcher.relaunch({:timeout => 300})

I am suspicious that it takes more than 30s to launch your app.

If at all possible update to latest version of calabash.

UPDATE: The calabash environment docs have been posted.

http://calabashapi.xamarin.com/ios/

Beware of tweaking the variables in the Developer section.

于 2014-06-07T16:12:25.070 回答