Example of using the Apache Incubator MetaModel API in TestNG DataProvider. Uses a SQL query API supplied by MetaModel to build the 2D array returned by the DataProvider method.
Three examples that include:
- A DataProvider that reads data from a Excel .XLS or .XLSX file.
- A DataProvider that reads data from a CSV file.
- A DataProvider that reads data from a XML file.
Requires the following dependency in your pom.xml file.
<dependency>
<groupId>org.apache.metamodel</groupId>
<artifactId>MetaModel-full</artifactId>
<version>4.3.2</version>
</dependency>