最后在使用报告门户时出错。这是一个间歇性的问题。由于“进行中状态”,报告门户启动时未完成执行。我已经检查了以下链接问题。报告门户 406 执行错误问题。我没有在 BeforeClass 方法中使用任何条件检查,并且在执行完成后没有测试用例仍在运行。请在下面找到我正在使用的最新版本:
- com.epam.reportportal - 代理-java-testng - 4.2.0
- com.epam.reportportal - logger-java-logback - 4.0.0
- com.epam.reportportal - client-java - 4.0.9
要点:
- 我在 Pom 文件中使用 RP 侦听器。
- 并行=“测试”线程数=“20”
[2018-12-24 07:33:47.922] [ERROR] [com.epam.reportportal.service.Launch] : [76] ReportPortal execution error
com.epam.reportportal.exception.ReportPortalException: Report Portal returned error
Status code: 406
Status message: Not Acceptable
Error Message: Finish launch is not allowed. Launch '5c20fa81adbe1d00019c7763' has items '[5c20fa85adbe1d00019c7765]' with 'IN_PROGRESS' status
Error Type: FINISH_LAUNCH_NOT_ALLOWED
at com.epam.reportportal.service.ReportPortalErrorHandler.handleError(ReportPortalErrorHandler.java:83)
at com.epam.reportportal.service.ReportPortalErrorHandler.handle(ReportPortalErrorHandler.java:59)
at com.epam.reportportal.restendpoint.http.HttpClientRestEndpoint$1.subscribe(HttpClientRestEndpoint.java:517)
at io.reactivex.internal.operators.maybe.MaybeCreate.subscribeActual(MaybeCreate.java:45)
at io.reactivex.Maybe.subscribe(Maybe.java:4096)
at io.reactivex.internal.operators.maybe.MaybeCache.subscribeActual(MaybeCache.java:77)
at io.reactivex.Maybe.subscribe(Maybe.java:4096)
at io.reactivex.internal.operators.maybe.MaybeSubscribeOn$SubscribeTask.run(MaybeSubscribeOn.java:54)
at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:38)
at io.reactivex.internal.schedulers.ScheduledDirectTask.call(ScheduledDirectTask.java:26)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)