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.
目前我必须知道没有。我传递给测试函数的参数。有没有办法将参数从数据提供者作为不定数量的元素数组传递给测试函数?我正在从 Excel 表中读取数据行,其想法是将每一行作为单独的测试执行。我正在使用 testNG 来运行这些测试。
为什么不简单地将这个参数作为数组传递呢?(这实际上是 JVM 在声明 varargs 参数时所做的事情)