In TestNG suites are created using xml file.
Below is an example.
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<!--
@BeforeSuite
-->
<suite name="TestAll">
<!--
@BeforeTest
-->
<test name="case1">
<classes>
<class
name="com.testng.examples.configuration.Test1"
/>
<class
name="com.testng.examples.configuration.Test2"
/>
<class
name="com.testng.examples.configuration.Test3"
/>
</classes>
</test>
<!-- @AfterTest
-->
•
<!-- @BeforeTest
-->
<test name="case2">
<classes>
<class
name="com.testng.examples..Test1"
/>
<class name="com.testng.examples.Test2"
/>
</classes>
</test>
<!-- @AfterTest
-->
</suite>
<!-- @AfterSuite
-->
No comments:
Post a Comment