testng-team / testng

TestNG testing framework
https://testng.org
Apache License 2.0
1.99k stars 1.02k forks source link

ability to xinclude in testng files #542

Closed tinnyatpardot closed 1 year ago

tinnyatpardot commented 10 years ago

Hi Guys,

This is related to defect 95 with this description:

Add ability to include XML files (XInclude)

I know this defect was closed because of the ability to use suite-files but that is only allowed at the suite level. It doesn't allow for lots of flexibility say having the ability to split out a ton of common parameters and classes used across several cases into another xml file. Can the solution proposed in that defect (which makes the xml parser xinclude aware) be used? Thanks a bunch!

tinnyatpardot commented 10 years ago

This was the solution in the other defect, might help:

SAXParserFactory spf = loadSAXParserFactory(); spf.setNamespaceAware(true); spf.setXIncludeAware(true);

JnRouvignac commented 10 years ago

tinnyatpardot is refering to Add ability to include XML files (XInclude) #95

krmahadevan commented 1 year ago

Almost all of the capabilities with respect to altering suite can be achieved via the TestNG listener org.testng.IAlterSuiteListener