I am using TestNG to run tests on my source code. Please help me with the below 2 queries.
1) I have configured the testng.xml to run 2 other testng xml's. The testng xml looks like below:
<suite name="TestSuite">
<listeners>
<listener class-name="com.listener.listenerlcass" />
</listeners>
<suite-files>
<suite-file path="./testng-1.xml"></suite-file>
<suite-file path="./testng-2.xml"></suite-file>
</suite-files>
</suite>
testng-1.xml and testng-2.xml run test classes.
How do I ensure that that the test classes in testng-1.xml and testng-2.xml do not run parallely?
2) Further within testmg-1.xml, I have 2 test tags like something below:
<suite name="TestSuite1">
<test name="Test1">
<packages>
<package name="com.pakcage1">
</package>
</packages>
</test>
<test name="Test2">
<packages>
<package name="com.package2">
</package>
</packages>
</test>
</suite>
How do I ensure that that the test classes in com.package1 and com.package2 do not run parallely?
It would be very grateful if you could help me with this query.