testng.xml
Here i've mentioned my test methods are parallel, my intention is to run the test methods in parallel but each tests should run sequentially one after the other like, After LoginPage-tests runs the testmethods in parallel, after that the dashboard testcase should run the testMethods in parallel.
how can i achieve this behaviour?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="MyStartupEquity AdminLogin suite" parallel="false">
<listeners>
<listener class-name="Listeners.ExtentListeners">
</listener>
</listeners>
<test thread-count="5" name="LoginPage - Tests" parallel="methods">
<parameter name="browser" value="chrome"></parameter>
<classes>
<class name="TestCases.loginTest" >
<methods>
<include name="verifyLoginPageTitle" />
<include name="verifyInvalidCredentials" />
<include name="logging_In" />
</methods>
</class>
</classes>
</test>
<test thread-count="5" name="DashboardPage - Tests" parallel="methods">
<parameter name="browser" value="chrome"></parameter>
<classes>
<class name="TestCases.dashboardTest" >
<methods>
<include name="vestingTableCheck" />
<include name="dashboardCheck" />
</methods>
</class>
</classes>
</test>
</suite>