Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement timeout to start SauceConnect - SauceConnectDidNotStartException #3813

Open
AngelinaMarchyk opened this issue Apr 7, 2023 · 0 comments
Labels
feature New feature or request

Comments

@AngelinaMarchyk
Copy link

AngelinaMarchyk commented Apr 7, 2023

Is your feature request related to a problem? Please describe.
Currently we have some amount of broken tests which run for 30 minutes because browser can't be opened at the very beginning and step Given I am on page with URL "URL" is broken

Describe the solution you'd like
We would like to set timeout for such cases.

Additional context
Error:
java.lang.IllegalStateException: com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager$SauceConnectDidNotStartException: Time out while waiting for Sauce Connect to start, please check the Sauce Connect log located in /tmp/sc-64eaf527-782a-4f16-9fec-30c264584131.log at org.vividus.selenium.sauce.SauceConnectManager.start(SauceConnectManager.java:84) at org.vividus.selenium.sauce.SauceConnectManager.start(SauceConnectManager.java:31) at org.vividus.selenium.tunnel.AbstractTunnellingCapabilitiesConfigurer.configureTunnel(AbstractTunnellingCapabilitiesConfigurer.java:56) at org.vividus.selenium.sauce.SauceLabsCapabilitiesConfigurer.configure(SauceLabsCapabilitiesConfigurer.java:45) at org.vividus.selenium.AbstractVividusWebDriverFactory.lambda$getDesiredCapabilities$0(AbstractVividusWebDriverFactory.java:72) at java.base/java.lang.Iterable.forEach(Unknown Source) at org.vividus.selenium.AbstractVividusWebDriverFactory.lambda$getDesiredCapabilities$1(AbstractVividusWebDriverFactory.java:72) at java.base/java.util.Optional.ifPresent(Unknown Source) at org.vividus.selenium.AbstractVividusWebDriverFactory.getDesiredCapabilities(AbstractVividusWebDriverFactory.java:71) at org.vividus.selenium.AbstractVividusWebDriverFactory.create(AbstractVividusWebDriverFactory.java:56) at org.vividus.selenium.WebDriverProvider.get(WebDriverProvider.java:56) at org.vividus.ui.web.action.NavigateActions.getWebDriver(NavigateActions.java:116) at org.vividus.ui.web.action.NavigateActions.navigateTo(NavigateActions.java:45) at org.vividus.steps.ui.web.PageSteps.openPage(PageSteps.java:99) at jdk.internal.reflect.GeneratedMethodAccessor148.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at org.jbehave.core.steps.StepCreator$ParametrisedStep.perform(StepCreator.java:906) at org.jbehave.core.steps.StepCreator$ReportingAbstractStep.perform(StepCreator.java:649) at org.jbehave.core.embedder.PerformableTree$FineSoFar.run(PerformableTree.java:379) at org.jbehave.core.embedder.PerformableTree$FineSoFar.run(PerformableTree.java:397) at org.jbehave.core.embedder.PerformableTree$FineSoFar.run(PerformableTree.java:397) at org.jbehave.core.embedder.PerformableTree$PerformableSteps.perform(PerformableTree.java:1441) at org.jbehave.core.embedder.PerformableTree$AbstractPerformableScenario.lambda$performScenario$0(PerformableTree.java:1283) at org.jbehave.core.embedder.PerformableTree$PerformableEntity.performWithStopExecutionExceptionHandling(PerformableTree.java:965) at org.jbehave.core.embedder.PerformableTree$AbstractPerformableScenario.performScenario(PerformableTree.java:1276) at org.jbehave.core.embedder.PerformableTree$NormalPerformableScenario.perform(PerformableTree.java:1332) at org.jbehave.core.embedder.PerformableTree$PerformableScenario.perform(PerformableTree.java:1225) at org.jbehave.core.embedder.PerformableTree$PerformableStory.lambda$perform$0(PerformableTree.java:1090) at org.jbehave.core.embedder.PerformableTree$PerformableEntity.performWithStopExecutionExceptionHandling(PerformableTree.java:965) at org.jbehave.core.embedder.PerformableTree$PerformableStory.perform(PerformableTree.java:1082) at org.jbehave.core.embedder.PerformableTree.performCancellable(PerformableTree.java:521) at org.jbehave.core.embedder.PerformableTree.perform(PerformableTree.java:488) at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:305) at org.jbehave.core.embedder.StoryManager$EnqueuedStory.call(StoryManager.java:278) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source) Caused by: com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager$SauceConnectDidNotStartException: Time out while waiting for Sauce Connect to start, please check the Sauce Connect log located in /tmp/sc-64eaf527-782a-4f16-9fec-30c264584131.log at com.saucelabs.ci.sauceconnect.AbstractSauceTunnelManager.openConnection(AbstractSauceTunnelManager.java:407) at org.vividus.selenium.sauce.SauceConnectManager.start(SauceConnectManager.java:77) ... 38 more
Screenshot 2023-04-07 at 10 42 08

@AngelinaMarchyk AngelinaMarchyk added the feature New feature or request label Apr 7, 2023
@AngelinaMarchyk AngelinaMarchyk changed the title Implement retry mechanism to stabilise session - SauceConnectDidNotStartException Implement timeout to start SauceConnect - SauceConnectDidNotStartException Apr 7, 2023
@valfirst valfirst linked a pull request Jun 11, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant