且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

单元测试框架-TestNG使用可配置的值定义threadPoolSize

更新时间:2022-02-08 09:48:20

您需要使用"IAnnotationTransformer"接口通过.properties文件配置"invocationCount"和"threadPoolSize"参数值,以覆盖默认值.

You need to use "IAnnotationTransformer" interface to make "invocationCount" and "threadPoolSize" parameter values configurable through a .properties file to override default values.

为解决此问题,我创建了一个示例示例.请检出 https://github.com/pashtika/test-ng/tree/master/testng-annotation-configurable .

To address this issue, I've created a Sample Example. Please check this out https://github.com/pashtika/test-ng/tree/master/testng-annotation-configurable.