-
Bug
-
Resolution: Not A Defect
-
Major
-
None
When running Robot Framework plugin 3.5.0 with pabot, it fails to parse the output.xml and gives the following error:
Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 392fd72f-5164-49c5-a9d4-11eacbe0a368 java.lang.NullPointerException: Cannot invoke "String.length()" because "text" is null at java.base/java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1474) at java.base/java.text.DateFormat.parse(DateFormat.java:397) at hudson.plugins.robot.model.RobotCaseResult.timeDifference(RobotCaseResult.java:68) at hudson.plugins.robot.model.RobotCaseResult.getDuration(RobotCaseResult.java:117) at hudson.plugins.robot.model.RobotSuiteResult.tally(RobotSuiteResult.java:405) at hudson.plugins.robot.model.RobotSuiteResult.tally(RobotSuiteResult.java:413) at hudson.plugins.robot.model.RobotSuiteResult.tally(RobotSuiteResult.java:413) at hudson.plugins.robot.model.RobotResult.tally(RobotResult.java:422) at hudson.plugins.robot.RobotBuildAction.setResult(RobotBuildAction.java:124) at hudson.plugins.robot.RobotBuildAction.<init>(RobotBuildAction.java:95) at hudson.plugins.robot.RobotPublisher.perform(RobotPublisher.java:299) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:101) at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:71) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833) Finished: FAILURE
It's trying to parse the endtime attribute from the output.xml, but that attribute was removed in Robot Framework 7.0.
pavans thanks reporting the issue. We are grateful when a user reports a problem.
You'll need to provide much more information in order to persuade others to volunteer their time to investigate the issue. The "How to report an issue" page lists the types of details that are needed so that others can investigate an issue. If that information is not provided, this will likely be closed as "Cannot reproduce".