Skip to content

Parser crash when the Robot Framework test reference contains a double quote

Same problem as #35 (closed) for Robot Framework.
The test is declared as:
image The Orchestrator logs contains:

[2022-11-08 14:51:42,835] ERROR in robotframework-report-interpreter: Unexpected XPath error.                                                                                                                                                javax.xml.xpath.XPathExpressionException: javax.xml.transform.TransformerException: Expected ], but found: Intern                                                                                                                                    at java.xml/com.sun.org.apache.xpath.internal.jaxp.XPathImpl.compile(XPathImpl.java:174)                                                                                                                                                     at org.opentestfactory.utils.document.DocumentUtils.getNodes(DocumentUtils.java:83)                                                                                                                                                          at org.opentestfactory.utils.document.DocumentUtils.evaluateXPath(DocumentUtils.java:70)                                                                                                                                                     at org.opentestfactory.plugins.report.interpreter.robotframework.application.RobotFrameworkReportParser.extractStatus(RobotFrameworkReportParser.java:90)                                                                                    at org.opentestfactory.plugins.report.interpreter.base.application.AbstractReportParser.retrieveXmlStatus(AbstractReportParser.java:71)                                                                                                      at org.opentestfactory.plugins.report.interpreter.base.application.ReportInterpreterOutputBuilder.buildWithMap(ReportInterpreterOutputBuilder.java:42)                                                                                       at org.opentestfactory.plugins.report.interpreter.base.application.ReportInterpreterOutputBuilder.buildOutput(ReportInterpreterOutputBuilder.java:30)                                                                                        at org.opentestfactory.plugins.report.interpreter.robotframework.application.RobotFrameworkReportInterpreterTask.doTask(RobotFrameworkReportInterpreterTask.java:53)                                                                         at org.opentestfactory.services.components.logger.WorkflowTask.run(WorkflowTask.java:38)                                                                                                                                                     at java.base/java.lang.Thread.run(Thread.java:829)                                                                                                                                                                                   Caused by: javax.xml.transform.TransformerException: Expected ], but found: Intern                                                                                                                                                                   at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.error(XPathParser.java:627)                                                                                                                                               at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.consumeExpected(XPathParser.java:545)                                                                                                                                     at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.Predicate(XPathParser.java:1911)                                                                                                                                          at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.Step(XPathParser.java:1699)                                                                                                                                               at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.RelativeLocationPath(XPathParser.java:1608)                                                                                                                               at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.LocationPath(XPathParser.java:1570)                                                                                                                                       at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.PathExpr(XPathParser.java:1289)                                                                                                                                           at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.UnionExpr(XPathParser.java:1208)                                                                                                                                          at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.UnaryExpr(XPathParser.java:1114)                                                                                                                                          at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.MultiplicativeExpr(XPathParser.java:1035)                                                                                                                                 at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.AdditiveExpr(XPathParser.java:977)                                                                                                                                        at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.RelationalExpr(XPathParser.java:902)                                                                                                                                      at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.EqualityExpr(XPathParser.java:842)                                                                                                                                        at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.AndExpr(XPathParser.java:806)                                                                                                                                             at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.OrExpr(XPathParser.java:779)                                                                                                                                              at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.Expr(XPathParser.java:762)                                                                                                                                                at java.xml/com.sun.org.apache.xpath.internal.compiler.XPathParser.initXPath(XPathParser.java:138)                                                                                                                                           at java.xml/com.sun.org.apache.xpath.internal.XPath.<init>(XPath.java:207)                                                                                                                                                                   at java.xml/com.sun.org.apache.xpath.internal.jaxp.XPathImpl.compile(XPathImpl.java:166)                                                                                                                                                     ... 9 common frames omitted                                                                                                                                                                                                          [2022-11-08 14:51:42,863] ERROR in robotframework-report-interpreter: The test case 'Run "Intern" Test' returned an error status