--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks,
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/groups/opt_out.
org.openqa.selenium.remote.SessionNotFoundException:
Session ID is null
Build info: version: '2.32.0', revision:
'6c40c18', time: '2013-04-09
17:23:22'
System info: os.name:
'Windows 7', os.arch: 'amd64',
os.version: '6.1', java.version:
'1.7.0_21'
Driver info: driver.version: InternetExplorerDriver
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:273)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:66)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:527)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:569)
at org.openqa.selenium.ie.InternetExplorerDriver.getScreenshotAs(InternetExplorerDriver.java:88)
at test.java.core.WebDriverSetup.takeScreenshot(WebDriverSetup.java:102)
... Removed 25 stack frames |
org.openqa.selenium.remote.UnreachableBrowserException:
Error communicating with the remote browser. It may have died.
Build info: version: '2.32.0', revision:
'6c40c18', time: '2013-04-09
17:23:22'
System info: os.name:
'Windows 7', os.arch: 'amd64',
os.version: '6.1', java.version:
'1.7.0_21'
Driver info: driver.version: RemoteWebDriver
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:548)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:569)
at org.openqa.selenium.remote.RemoteWebDriver.quit(RemoteWebDriver.java:423)
at test.java.core.WebDriverSetup.tearDown(WebDriverSetup.java:91)
Caused by: org.openqa.selenium.WebDriverException: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:16264
refused
Build info: version: '2.32.0', revision:
'6c40c18', time: '2013-04-09
17:23:22'
System info: os.name:
'Windows 7', os.arch: 'amd64',
os.version: '6.1', java.version:
'1.7.0_21'
Driver info: driver.version: RemoteWebDriver
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:75)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:527)
... 29 more
Caused by: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:16264 refused
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:151)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:125)
at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:701)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:517)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.openqa.selenium.remote.HttpCommandExecutor.fallBackExecute(HttpCommandExecutor.java:316)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:295)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:66)
... 30 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:75)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
at java.net.Socket.connect(Socket.java:579)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:127)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
... 38 more
... Removed 26 stack frames |
Gagan,To begin with your problem is more TestNG centric than WebDriver centric.
You would need to show us how have you designed your tests and how are you executing them to dig more on the failures part. You would need to do that on the TestNG-users forum and NOT here.
On Friday, July 12, 2013, Ashok Tulachan wrote:
Then you need to post your tests cases and html page here in order to find out what went wrong.We cannot just randomly guess the solution for your problem
Ashok,
As I mentioned in my post there are NO group or method Dependencies on this test. This has happened with other tests as well which also had no dependecies. It seems like IE driver or WebDriver triggers some chain reaction, in case one test case fails the rest are skipped. This does not happen with ALL failures. It only happens with some unexpected failures, such as this case where Model dialogue did not appear in time.
Thanks,
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+unsubscribe@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/groups/opt_out.
--- "If you haven't suffered, you haven't lived your life."
Regards,Ashok Tulachan
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+unsubscribe@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
It's hard to know how to proceed, so I'll go with a series of questions I'd have for myself if I were to have this problem. I'd probably write down these questions when I was far away from a computer so I could really try to wrap my head around the problem, rather than just continually hacking away. These are mostly questions for you to try to answer yourself--without a ton more information we can't help much more than this, and with a ton of information, it would still be difficult.If you can get to where you can ask and answer these questions yourself on similar issues, you might find a lot less frustration and need for help...Questions for you to ponder:- Does the same thing happen in Chrome and/or Firefox if these tests fail? I understand if your requirement is to run them in IE, but it would be helpful to know whether or not it's an IE-specific thing
- If you run the tests individually, do they pass?
- If you run them in small groups (using the -Dgroups flag from the command-line), does a failure still induce skippage?
- If you were to add dependsOn annotations, in effect running the problem test last, would it help or hurt matters?
- Does it matter the *nature* of the failure? I.e. is it only WebDriverExceptions or NoSuchElementExceptions that cause the skippage, or is it any and every time there is a failure?
- Can you do a step-through debugging, where you set a breakpoint at a known area of breakage, and then step through the WebDriver code? This isn't nearly as daunting as it sounds, and can be quite instructive for other issues. You can download the sources via Maven if you're using it
- Do the surefire reports generated from TestNG illuminate anything?
- Is there any amount of logging or exception handling you can add that will further reveal the state of the test when it failed?
I'm new to Java, if you can recommend something then i would be more than happy to add additional loggin.
- If it is an IE-specific thing, can you put a breakpoint near the area of breakage, then when you're at that breakpoint, keep an eye on the IE browser itself as it dies?
- After IE dies, is there some leftover process that's still running? If you kill IE, will that make it "come back to life" again?
- Is there some set of IE event or error logs you can access that can tell you what happened when it died and why WebDriver might not be able to connect again?
Checked System Events and did not find anything in there for today related to IE. However, I found the following for WebDriver in yesterday's log:
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+unsubscribe@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/groups/opt_out.
I'm certain I could think of a bunch more, but these are a jumping-off point. I have no idea how to even begin to answer some of these questions, but they are answerable, and if I had to do it I know the procedure for getting the answers would just be a few Googles away...
Let us know what kind of progress you are able to make...MM
On Fri, Jul 12, 2013 at 12:10 PM, fmtjatt <> wrote:
Krishnan,
Thanks for your reply. I don't think the problem is entirely TestNg Centric. One of my test failed again today and it caused others to skip. The tests which are being skipped have no dependency on the tests which are failing.
It is some sort of chain reaction which is causing WebDriver or IE driver to thing that the session is NULL and it cannot continue with the next test. The others skipped due to following error:
org.openqa.selenium.remote.SessionNotFoundException: Session ID is null Build info: version: '2.32.0', revision: '6c40c18', time: '2013-04-09 17:23:22' System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_21' Driver info: driver.version: InternetExplorerDriver at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:273) at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:66) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:527) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:569) at org.openqa.selenium.ie.InternetExplorerDriver.getScreenshotAs(InternetExplorerDriver.java:88) at test.java.core.WebDriverSetup.takeScreenshot(WebDriverSetup.java:102) ... Removed 25 stack frames
org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died. Build info: version: '2.32.0', revision: '6c40c18', time: '2013-04-09 17:23:22' System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_21' Driver info: driver.version: RemoteWebDriver at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:548) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:569) at org.openqa.selenium.remote.RemoteWebDriver.quit(RemoteWebDriver.java:423) at test.java.core.WebDriverSetup.tearDown(WebDriverSetup.java:91) Caused by: org.openqa.selenium.WebDriverException: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:16264 refused Build info: version: '2.32.0', revision: '6c40c18', time: '2013-04-09 17:23:22' System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_21' Driver info: driver.version: RemoteWebDriver at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:75) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:527) ... 29 more Caused by: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:16264 refused at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190) at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:151) at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:125) at org.apache.http.impl.client.DefaultRequestDirector.tryExecut<
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+unsubscribe@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/groups/opt_out.
--
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at http://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/groups/opt_out.
--
--
--