Closed saranya186b closed 7 years ago
I'd like that data providers take values from xml and pass to code in @annotations, like parameters... something like @DataProvider(name="dataProvider") and in XML
You could use something like Jackson to read JSON-files, or just create your objects via JAXB, doesn't have to be solved via TestNG itself. Have a look at the docu: https://github.com/FasterXML/jackson-dataformat-xml
This is not really a bug but more of a question, which has been answered above.
Is there any possibility that dataproviders can take values from xml file and pass it as pojo objects into methods like insertemp(Employee emp).