I am trying to run a unique test from testng.xml.My testng.xml is as below:
<suite name="Suite">
<test name="one">
<parameter name="browser" value="firefox"/>
<parameter name="os" value="win"/>
<classes>
<class name="com.snapdeal.qa.Tests.MyAccount.SignUpTest"/>
</classes>
</test>
<test name="two">
<parameter name="browser" value="chrome"/>
<parameter name="os" value="win"/>
<classes>
<class name="com.snapdeal.qa.Tests.MyAccount.BaseTest"/>
<class name="com.snapdeal.qa.Tests.MyAccount.SignUpTest"/>
</classes>
</test>
</suite>
I am using maven and i am passing which test to run through sure-fire like this: test -Dtests="one" But its running all tests defined in testng.Where is actually i am wrong. and how to run a specfic test like this in any way
Aucun commentaire:
Enregistrer un commentaire