You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Problem

When importing execution results from automated test frameworks (Xray, Cucumber, Behave, JUnit, TestNG, NUnit, xUnit, Robot), the upload does not work and may return some errors like the ones below:

NUnit errors

java.lang.NullPointerException
at com.xpandit.raven.service.executionresult.converter.framework.impl.NUnitExecutionResultBeanConverterImpl.b(Unknown Source)
...
at com.xpandit.raven.service.executionresult.converter.impl.ExecutionResultBeanConverterServiceImpl.b(Unknown Source)
at com.xpandit.raven.service.executionresult.j.a(Unknown Source)
at com.xpandit.raven.service.executionresult.impl.ImportExecutionResultsServiceImpl.a(Unknown Source)
...
at com.xpandit.raven.rest.api.v1.a.a.a(Unknown Source)
at com.xpandit.raven.rest.api.v1.a.b.e.a(Unknown Source)


Troubleshoot

One of the main causes and the first thing to test is the execution report and ensure it is correctly generated.

And a quick way to ensure the execution report is correct, its to validate it against the respective schema.

Below there a link to that format validator and to XML schemas.


XML Formats

Validator: https://www.freeformatter.com/xml-validator-xsd.html



JSON Formats

Validator: https://www.jsonschemavalidator.net/



  • No labels