Reportportal: Is it possible to uploud test results (manually) via REST API?

Created on 16 Nov 2020  路  3Comments  路  Source: reportportal/reportportal

Instead of sending test results live during each mvn build is it possible to send the results (.xml files) to RP via REST API at the end of a build on a CI pipeline?

help wanted

Most helpful comment

@wlad there is an 'import' functionality.
it can eat xunit standard results.
Thus you can make an API call at the end of execution and upload results.

All 3 comments

Just noticed that I actually wanted to files this issue in agent-java-junit5. But it may be interesting for other frameworks as well I guess.

@wlad there is an 'import' functionality.
it can eat xunit standard results.
Thus you can make an API call at the end of execution and upload results.

@DzmitryHumianiuk thanks for the hint 馃憤
That was exactly what I looked for :)

NOTE: requires junit conform .xml output. Default Robot Framework output.xml is not supported directly but can be transformed into a junit conform file with Robot's rebot tool. It seems to flatten the test suite structure, though.

Was this page helpful?
0 / 5 - 0 ratings