如何解决下面的错误-错误:子进程错误:测试运行器sel (JUnitTester)已经失败与retcode 1



当我使用Taurus运行selenium脚本并想在JMX中转换时,得到了错误-

10:55:54 ERROR: Child Process Error: Test runner sel (JUnitTester) has failed with retcode 1

10:55:54 ERROR: JUnitTester STDERR:
May 02, 2022 10:55:50 AM com.blazemeter.taurus.junit.CustomRunner main
INFO: Starting: [C:Userssss2022-05-02_10-55-36.435651runner.properties]
Exception in thread "main" com.blazemeter.taurus.junit.exception.CustomRunnerException: Nothing to test
at com.blazemeter.taurus.junit.CustomRunner.main(CustomRunner.java:54)

如何解决?

这意味着Taurus JUnit Executor在某个地方失败了,检查Artifacts目录中的日志并在那里查找Java/JUnit相关的错误。

很可能JUnit执行器无法检测到任何要运行的测试用例,如果没有看到完整的日志和您的自动化代码,就不可能确定根本原因是什么。

注意,你可以使用另一种不涉及金牛座的方法,即

  1. 启动BlazeMeter Proxy Recorder
  2. 配置测试以使用上述记录器作为代理
  3. 从IDE或控制台运行测试
  4. BlazeMeter代理记录器将捕获请求并将其转换为.jmx文件(您也可以将其导出为"SmartJMX")动态参数自动检测和关联)

最新更新