I have written several test classes to test a web application using TestNG. Each and every test classes are independent.(I use Java,TestNG) I have defined my test classes in the testng.xml as below. <test verbose="2" name="Default test" parallel="false" > <classes> <class name="bvtTestCases.TC001_TestCase1" /> <class name="bvtTestCases.TC002_TestCase2" /> <class name="bvtTestCases.TC003_TestCase3" /> <class name="bvtTestCases.TC004_TestCase4" /> </classes> But the problem is when i run testng.xml , it runs all test classes same time(parallely).As there are 4test classes then it opens 4 web browser instances same time and try to run every test classes same time. But What I need is to run first class first and when it is completed then start running the second class. can any one help me to do this? I really appreciate the help Thanks, |
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
<test verbose="2" name="Default test" parallel="false" preserve-order="true" thread-count="1" >
<classes>
<class name="bvtTestCases.TC001_TestCase1" />
<class name="bvtTestCases.TC002_TestCase2" />
<class name="bvtTestCases.TC003_TestCase3" />
<class name="bvtTestCases.TC004_TestCase4" />
</classes>