TestNG Dataprovider size
Is it possible to get the number of elements in a TestNG DataP开发者_StackOverflow中文版rovider array at runtime?
Yes:
http://groups.google.com/group/testng-users/browse_thread/thread/e4ededbe4a084795
There is not a existing interface or method to return run time number of testng. We can add a method by ourselves to calculate the number of run time testng data provider.
精彩评论