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

JDI tries to open webdriver in cycle if there are any problems in chrome webdriver #154

Open
romaha08 opened this issue Nov 1, 2017 · 1 comment

Comments

@romaha08
Copy link

romaha08 commented Nov 1, 2017

If there is any problem in chrome webdriver JDI open driver many times.
As result we have many processes opened and few PC resources

Log something like:
557 [main] INFO JDI Logger - Init test run
265166 [main] INFO JDI Logger - Open page 'Start Page' for Start Page(https://ngp-portal-qa.dev.ngp.zoetis.com/)
Starting ChromeDriver 2.20.353145 (343b531d31eeb933ec778dbcf7081628a1396067) on port 15183
Only local connections are allowed.
Starting ChromeDriver 2.20.353145 (343b531d31eeb933ec778dbcf7081628a1396067) on port 42924
Only local connections are allowed.

Exception:
Failed to invoke configuration method com.zoetis.ngp.qa.InitNGPUITest.setUp:java.lang.AssertionError: Do action Open page 'Start Page' failed. Can't get result. Reason: java.lang.NoSuchMethodError: com.google.common.util.concurrent.SimpleTimeLimiter.create(Ljava/util/concurrent/ExecutorService;)Lcom/google/common/util/concurrent/SimpleTimeLimiter;

@bashilovpa
Copy link

Found a similar issue for C #:
Method public IWebDriver GetDriver(string driverName) in WebDriverFactory.cs throws Exception when problems with webdriver oocurs, but this method called inside of Wait method (Line 31 Timer.cs) in line 35 ...waitFunc.AvoidExceptions()... and inside of this exceptions are not raised up.
As result we loose exception that was thrown by public IWebDriver GetDriver(string driverName)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants