TestNG 执行报错 “Parameter 'xxx' is

2020-05-15  本文已影响0人  桑鱼nicoo

解决方案,从下面几个方法入手:

第1种. 注释 @Parameters 是从 org.testng.annotations 导入的
第2种. ideas 运行,右键单击该类并选择,run as TestNG test,然后确保编辑运行配置并提供JVM参数。-Dbrowser=firefox
第3种. maven命令行运行,使用 mvn clean test -P Regression
第4种. 从 testng.xml 执行

上一篇下一篇

猜你喜欢

热点阅读