Run multiple testng xml files: <Suite-files>:
testng.xml
testng2.xml
testNGforParamters.xml
testNGForCrossBrowserTesting.xml
ex:
<suite-files>
<suite-file
path="testng.xml"></suite-file>
<suite-file
path="testNgCrossBrowserTesting.xml"></suite-file>
</suite-files>
Create new xml
file and define suite-files:
<?xml version="1.0" encoding="UTF-8"?>
<suite name= "My suite">
<Suite-files>
<suite-file
path="testng.xml"> </suite-file>
<suite-file
path="TestNgForCrossBrowserTesting.xml"> </suite-file>
<suite-file
path="TestNGParamters.xml"> </suite-file>
</Suite-files>
</suite>
Run as testng > it runs
all xml files defined 'suite-files' tag
FAQ: Can we run
multiple testng.xml file ?
HW run 3
Testng.xml files from one more testng.xml using <suite-files>?
No comments:
Post a Comment