Java, .NET, PHP, PYTHON, ANGULAR, ML, Data Science, Testing, CI Tutorials in Easy Languages.

"Best Software Training, Internship, Project Development center of Indore India, Helpline 780506-3968"





The test suite is used to execute more than one test class using a single XML file.

Test Suite always will be defined by an XML file that contains multiple test classes using XML tag.

Syntax of testsuite.xml

<?xml version = "1.0" encoding = "UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >

<suite name = "Suite1">

   <test name = "exampletest1">
      <classes>
         <class name = "Test1" />
      </classes>
   </test>
  
   <test name = "exampletest2">
      <classes>
         <class name = "Test2" />
      </classes>
   </test>


@BeforeSuite and @AfterSuite Annotation can be defined in the source code of class which will be executed before suite execution and after suite execution for a particular class.



Post a Comment

If you have any doubt in programming or join online classes then you can contact us by comment .

Previous Post Next Post