Issue while running webdriver testcases in parallel using testng

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue while running webdriver testcases in parallel using testng

Vasuki
Friends, 

Without extending TestCase, the webdriver test cases are running fine in sequential order. If I run the testcases in parallel using testng (without extending TestCase), received the below exception. 

org.testng.TestNGException: 
Failure in JUnit mode for class com.**.TestCase: could not create/run JUnit test suite: 
Cannot find JUnit method class junit.framework.TestSuite$1.warning 


If I run the test case by extending TestCase, it is working fine (Eg: public class ActiveTestCase extends TestCase). 

Please let me know how to run the test cases in parallel without extending TestCase. 

Thanks 

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/mDWr4P48OXEJ.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
Reply | Threaded
Open this post in threaded view
|

Re: Issue while running webdriver testcases in parallel using testng

Ravi Gupta
Hi Vasuki,

Probably you havent imported the testNg import and use the annotation of testng(like @Test) not of junit. Remove all junit imports . and then import TestNG jars path.

Probably this would help.

ravi

On Wednesday, 26 September 2012 18:32:51 UTC+5:30, Vasuki wrote:
Friends, 

Without extending TestCase, the webdriver test cases are running fine in sequential order. If I run the testcases in parallel using testng (without extending TestCase), received the below exception. 

org.testng.TestNGException: 
Failure in JUnit mode for class com.**.TestCase: could not create/run JUnit test suite: 
Cannot find JUnit method class junit.framework.TestSuite$1.warning 


If I run the test case by extending TestCase, it is working fine (Eg: public class ActiveTestCase extends TestCase). 

Please let me know how to run the test cases in parallel without extending TestCase. 

Thanks 

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/XDYjYc9iY6YJ.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.