Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在运行时获取 TestNG DataProvider 数组中的元素数量?
是的:
http://groups.google.com/group/testng-users/browse_thread/thread/e4ededbe4a084795
不存在返回 testng 的运行时间编号的现有接口或方法。我们可以自己添加一个方法来计算运行时 testng 数据提供者的数量。