In integration testing scenario , I have an object creation if the object creation is successful i have Record CRUD operation but if object creation fails then record operation should be skipped. To maintain this integration scenarion i have configured my testng.xml file like this : -
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="TestNG" verbose="1" >
<test name="Object Testing" preserve-order="true">
<classes>
<class name="com.agileapps.settings.test.employee.PostObject" />
<class name="com.agileapps.settings.test.employee.GetObject" />
<class name="com.agileapps.settings.test.employee.DeleteObject" />
</classes>
</test>
<test name=" Record Testing" preserve-order="true">
<classes>
<class name="com.agileapps.settings.test.employee.PostObject" />
<class name="com.agileapps.settings.test.employee.PostRecord" />
<class name="com.agileapps.settings.test.employee.GetRecord" />
<class name="com.agileapps.settings.test.employee.GetRecordByID" />
<class name="com.agileapps.settings.test.employee.DeleteObject" />
</classes>
</test>
</suite>
but i need to maintain this dependency at class level not outside of the class , please suggest me some approach how i can avoid this dependency to make it run separately.
Aucun commentaire:
Enregistrer un commentaire