我正在使用数据提供程序在 testng 中传递参数并希望打印自定义测试用例名称(它将基于我传递给测试用例的数据类型)。我该怎么做?
问问题
332 次
1 回答
1
Parameters in Dataproviders looks like what you want.
If you declare your @DataProvider as taking a java.lang.reflect.Method as first parameter, TestNG will pass the current test method for this first parameter.
That bit of documentation also provides an example.
于 2013-10-21T08:34:23.937 回答