TestNG @DataProvider
Data Provider act as an data source for our test cases. This helps us create an input test data to make our test scripts data driven
In @DataProvider the data is store in the object array (Object arrays store multiple data types: For instance Integer, String, etc.)
Use of @DataProvider
- @DataProvider annotation help us create dynamic test scripts so that we dont need to add static data for each test case
- This help use create data driven tests
Comments
Post a Comment