January 2018
Beginner to intermediate
354 pages
7h 59m
English
There may be times when the user might want to run just a subset of the group of tests to create a "smokeTest" of some sort, narrowing the scope of the test run. Users can use TestNG groupings to assign tags to the test methods in the classes, and they can also filter in or filter out rows of data, using the DataProvider itself. This would allow them to select specific test rows of data or a small set with specific criteria like the rowID in the JSON Data File.
When filtering with the DataProvider, users can set a TestNG parameter in the suite XML file, pull in the parameter as a system property, and parse in or out those rows of data.
Here is an example of filtering sets of data in or out of the test ...
Read now
Unlock full access