Interrupted Thread Exception

110 views
Skip to first unread message

mani kandan

unread,
Oct 22, 2012, 8:37:44 AM10/22/12
to testng...@googlegroups.com

Hi,

                I am using testNG to run the various tests. I happen to face an issue when the suite runs for a long time. Pasting the stack trace beneath

 

[testng] java.lang.InterruptedException: sleep interrupted

   [testng]    at java.lang.Thread.sleep(Native Method)

   [testng]    at org.testng.internal.PoolService.submitTasksAndWait(PoolService.java:106)

   [testng]    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1013)

   [testng]    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:137)

   [testng]    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:121)

   [testng]    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

   [testng]    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

   [testng]    at java.lang.Thread.run(Thread.java:662)

   [testng] java.lang.InterruptedException: sleep interrupted

   [testng]    at java.lang.Thread.sleep(Native Method)

   [testng]    at org.testng.internal.PoolService.submitTasksAndWait(PoolService.java:106)

   [testng]    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1013)

   [testng]    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:137)

   [testng]    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:121)

   [testng]    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

   [testng]    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

   [testng]    at java.lang.Thread.run(Thread.java:662)

 

 

After this the remaining tests stop and am the report is shown only for the tests run until this exception occurred. What is the reason ? Is there a default timeout that every test is associated with ? 


--
ALWAYS KEEP SMILING

 FOR U EVER,
 
     G.MANIKANDAN

Cédric Beust ♔

unread,
Oct 22, 2012, 12:30:38 PM10/22/12
to testng...@googlegroups.com
You seem to be using an old version of TestNG, can you try the latest one? (6.8)

-- 
Cédric




--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to testng...@googlegroups.com.
To unsubscribe from this group, send email to testng-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.

Reply all
Reply to author
Forward
0 new messages