sleep interrupted for execution

137 views
Skip to first unread message

goran gasparini

unread,
Nov 27, 2015, 2:11:19 PM11/27/15
to webdriver
hi guys,
this stuff is making crazy
I have a set of tests (selenium+testNg ) which are pretty stable when I run them sequentially
The problem is that I want to make them run parallely but, in such case, i have a lot of
"Exception: org.openqa.selenium.WebDriverException: java.lang.InterruptedException: sleep interrupted Build info: version: '2.48.2' "
Really dont understand why, I was sure multi threading works fine but , seems I have bad karma :-(
If somebody know about this problem , please let me know and I'll give all the necess˙ary informations

Thanx

Bill

unread,
Nov 27, 2015, 3:42:24 PM11/27/15
to webd...@googlegroups.com
How are you setting up the parallelism? Please show how you create your webdriver objects for the multiple threads. That is a common source of error.
--
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/d/optout.

PixelGuy

unread,
Nov 28, 2015, 12:51:05 PM11/28/15
to webdriver
Testng works in case of multiple browsers.
But for same browser if you have to invoke multiple sessions ,in my case I used ThreadLocal.Use driver as an argument to ThreadLocal .This could be done in your base class in setup method nothing underneath would change.
Reply all
Reply to author
Forward
0 new messages