Inspectopedia
 
2024.3

Invalid data provider return type

Error
Reliability
New
Last modified: 03 December 2024

Reports methods marked with @DataProvider annotation that doesn't return Object[][] or Iterator<Object>. If another type is returned, TestNG throws an exception.

Example: