getgauge / gauge

Light weight cross-platform test automation
https://gauge.org
Apache License 2.0
2.98k stars 340 forks source link

Support for setting timeout in gauge run CLI command #2126

Open ankur-lt opened 3 years ago

ankur-lt commented 3 years ago

Is your feature request related to a problem? Please describe. A specific test might need an increased timeout. Thus, its not a good idea to modify the global gauge timeout in <HOME>.gauge/config/gauge.properties. The gauge run CLI command should provide have the ability to pass the timeout values. I could not find it in the documentation at: https://manpage.gauge.org/gauge_run.html

Describe the solution you'd like gauge run command should have the ability to pass the timeouts mentioned at Global configuration of Gauge which should be valid for that specific suite.

sriv commented 2 years ago

The timeout values you refer to are not specific to test execution, rather they are timeout for connection (i.e. when the runner starts up) and for every request that gauge sends to runner (only one of these requests is for execution of the test code).

Presently, I believe only gauge-js has the concept of per test timeout (since it uses async mechanism).