How to pass in timeout for cucumber command as in start_test_server_in_background(:timeout => 30)

 ̄綄美尐妖づ 提交于 2020-01-05 20:01:03

问题


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?

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


回答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.



来源:https://stackoverflow.com/questions/24075107/how-to-pass-in-timeout-for-cucumber-command-as-in-start-test-server-in-backgroun

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!