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
Getting Unreachable browser exception after a while when I am running the TestNG tests. OS : MAC #1040
Comments
This has nothing to do with TestNG, file an issue with chrome webdriver: https://bugs.chromium.org/p/chromedriver/issues/list |
I don't know if the problem comes from Chrome, but you should ask it on selenium project before here ;) Feel free to reopen the issue when you will have more detail on a testng issue. |
He already did file a bug report with selenium SeleniumHQ/selenium#2049 |
@Mobrockers Thank you. :) . I really don't think this is a chromedriver issue because it is not working in firefoxdriver and safari too. The execution simply stops. |
Ok thank, I will try to follow the discussion you have with @Tibor17 The best thing you can do is find a way to reproduce the issue in a project you can share. It will be easier to find where is the problem and how to fiw it. |
Perhaps your issue is related to On Tue, May 10, 2016, 16:52 Hemanth Sridhar notifications@github.com
|
@hemanthsridhar If the issue is maven related, could you try to run your tests in Windows from your IDE? |
@juherr If you see the first thing that I have mentioned in this issue, you will get the answer. It is working absolutely fine using windows. |
@Mobrockers seems like a long shot. Will try it though. |
Yes, sorry. I wanted to say osx. The goal is to determine between all layers which one is failing. If the tests are working well from the ide without maven, we will be able to exclude it from the list of suspects. |
@juherr No issues :). Anyways, you want me right click and run as testng suite from the IDE? |
@juherr I checked it from the IDE. receiving unreachable browser exception again. |
@juherr I ran from testng.xml but it worked fine on that particular day. I really don't know what is going on here now. :( |
Are you not opening too many concurrent browser sessions, grinding your On Tue, May 10, 2016, 21:55 Hemanth Sridhar notifications@github.com
|
I am not doing anything of that sort. It is just a simple execution of test cases.(Like I told you, working like a charm in Windows).@Mobrockers |
@Mobrockers Please see my testng.xml that I have given in the issue. |
I was assuming that when you say running on osx you also mean a different On Tue, May 10, 2016, 22:04 Hemanth Sridhar notifications@github.com
|
@Mobrockers Alright. Did not know that. Ask me anything, I will reply again. Just want this issue to get fixed. If you guys want I can drop a screenshot that it is working fine in windows. |
check the os.name in every screenshot. |
Ok, so if I understand well, now you reproduce the issue with eclipse on Windows too? |
The windows screenshot is showing a different error message it seems like. |
True, but it is not the same test. Difficult to conclude something. And on the OSX one, I read "Bad File descriptor". |
@juherr The error shown in his windows screenshot looks like a selenium TimeoutException on finding an element on the page, as in a normal exception that one would expect while running a selenium test. |
@juherr then the issue is related to? |
For me, it is an osx limitation with its default resources configuration. But as @Mobrockers proposed, you should try with another selenium driver. |
Will try with firefox and get back to you guys. |
@Mobrockers It is so weird. I ran my test through Firefoxdriver today and it is working perfectly. The other day I did the same and it didn't work. If I face the same I will get back to you guys. Thank you so much for your help guys. Please close this issue. PS : Will get back to the same bug if I face the same using Firefox.(which I did). |
Occurring for firefox now. Please open this issue if required and get this resolved if it is from your end. |
As I think it is more a Selenium issue than a TestNG one, I propose you try to find help on its mailing list: https://groups.google.com/forum/#!forum/selenium-users |
Since no one else seems to be reporting this particular bug, and you manage to reproduce it consistently across browsers but not systems, I would rather say it's got something to do with your particular hardware + software setup. Have you tried running your testsuite on someone else's mac? In any case like @juherr said you should probably ask in the selenium users group. Also I just saw in the selenium issue you created that you do not get this problem running your tests in failsafe. Since failsafe is designed to run integration-tests (which selenium tests are) the quick fix for you would be to simply use failsafe. There's really no reason at all NOT to use failsafe for selenium tests. |
@Mobrockers I am using allure reports which is dependent on surefire. Anyways, you are right, I will try to set up in someone else's MAC and see whether it works. Will get back to you guys. |
Can I share you guys my repo so that you guys can clone it and check please? This is really important. It would mean alot if you guys helped me with this. I really don't see any issue in configuration. Can you guys please check? |
I do not have a mac, sorry. Perhaps @remcowesterhoud can help you. |
okay. thank you. |
@juherr can you help me with this please? |
@juherr https://groups.google.com/forum/#!searchin/selenium-users/unreachable/selenium-users/Hp7MenNlIDU/UBGiTHZlBAAJ I had done this long back. No one replied though. |
@Mobrockers does any problem occur if we delete test-output folder? No right? Because I started getting this issue(firefox) once I deleted that folder and pushed the code to bitbucket. |
https://bitbucket.org/hemanthsridhar/etna if you can help. Master branch contains the latest code. |
I don't see how that could have an effect on selenium, no. Sorry On Thu, May 19, 2016, 20:46 Hemanth Sridhar notifications@github.com
|
Nothing in your configuration or source code stands out to me. |
No, I have no mac :/ |
@juherr the bug I raised to the chromedriver guy has a mac. He has my tests, he got the same issue. He's not bothered I guess because it is occurring for Firefox as well. Don't know what is going on. |
@hemanthsridhar I just ran your tests and am getting the same error. Were you able to find some sort of pattern in when the exception is thrown. I've been trying and it seems completely random when I run multiple tests. I've changed the order and modules that it runs with no result. However, when I run individual modules they all seem to work. |
@remcowesterhoud |
Any update on this? |
@hemanthsridhar did you ever find a solution for this .Im having the same issue on my mac.It works fine on windows. |
Issue remains same , is suggestion handle the issue ? |
@SelvamaniD - This issue has got nothing to do with TestNG. I think you should be posting on the selenium-users forums. |
@SelvamaniD @krmahadevan is right. This has nothing to do with TestNG. Note : You have no idea to what extent I reached to get to the bottom of this issue. Stalking Selenium Developers. Attending a Conference, just to meet them and show them. But unfortunately, the answer was always pointing fingers to someone else. Hope this helps. |
I am running my tests in MAC as well as in Windows. In windows, the code works like a charm. In MAC OSX, I run the same code and it will be working fine BUT after a while I get unreachable browser exception.
I am running my test through maven surefire plugin.
maven version : 3.3.9
surefire plugin : 2.19.1
testng version : 6.9.10
java.version: 1.8.0_77
Here is my stacktrace
PFB my TestNG.xml file
*Each class contains atleast 20 test cases each. *
Here is my pom.xml too.
Again, reminding you that the tests work perfectly fine windows machine. OSX version : 10.11.4 . I hope I can get a fix for this.
Also, Right clicking the testng.xml and clicking on run as testng suite IS WORKING FINE.
The text was updated successfully, but these errors were encountered: