Complete the code to define the root element of a TestNG suite in testng.xml.
<[1] name="SampleSuite"> </[1]>
The root element of a TestNG suite file is <suite>. It defines the entire test suite.
Complete the code to define a test inside the suite in testng.xml.
<suite name="SampleSuite"> <[1] name="LoginTests"> </[1]> </suite>
The <test> element defines a test inside the suite. It groups classes or methods to run.
Fix the error in the code to correctly specify a test class in testng.xml.
<suite name="SampleSuite"> <test name="LoginTests"> <classes> <[1] name="tests.LoginTest" /> </classes> </test> </suite>
The <class> element specifies a single test class inside
Fill both blanks to include two test classes inside a test in testng.xml.
<suite name="SampleSuite"> <test name="RegressionTests"> <classes> <[1] name="tests.HomeTest" /> <[2] name="tests.ProfileTest" /> </classes> </test> </suite>
Each test class inside
Fill all three blanks to define a suite with two tests, each having one test class in testng.xml.
<[1] name="FullSuite"> <[2] name="SmokeTests"> <classes> <[3] name="tests.SmokeTest" /> </classes> </[2]> <test name="SanityTests"> <classes> <class name="tests.SanityTest" /> </classes> </test> </[1]>
The root element is <suite>, inside it tests are defined with <test>, and test classes with <class>.