Page 1 of 1

Missing root elements <testsuites> in Rx7 Junit report

Posted: Wed May 24, 2017 11:21 pm
by jjiang1
Hello,
I noticed that after upgrade to Ranorax 7 and using your build-in jUnit report function, it missed the root elements <testsuites> on top of the report. I google the standard jUnit report structure, it shows below
<testsuites> => the aggregated result of all junit testfiles
<testsuite> => the output from a single TestSuite
<properties> => the defined properties at test execution
<property> => name/value pair for a single property
...
</properties>
<error></error> => optional information, in place of a test case - normally if the tests in the suite could not be found etc.
<testcase> => the results from executing a test method
<system-out> => data written to System.out during the test run
<system-err> => data written to System.err during the test run
<skipped/> => test was skipped
<failure> => test failed
<error> => test encountered an error
</testcase>
...
</testsuite>
...
</testsuites>


Does Ranorex still support the standard jUnit report format?

Thanks

Re: Missing root elements <testsuites> in Rx7 Junit report

Posted: Wed May 31, 2017 1:07 pm
by mw-tw
any news regarding this topic?

I cant't use the jenkins junit format with ranorex too... :(

Re: Missing root elements <testsuites> in Rx7 Junit report

Posted: Thu Jun 01, 2017 8:58 am
by CarpeDiem
I'm having the same problem.
The jUnit repot cannot be parsed from bamboo due to an invalid format.

Any information about a bugfix or workaround?

Re: Missing root elements <testsuites> in Rx7 Junit report

Posted: Thu Jun 01, 2017 2:31 pm
by qwertzu
Hello mw-tw,

I tried using the Jenkins JUnit Report function and everything works well. Yes, it´s true, that there is no <testsuites> element in the xml file, but this makes sense to me since within Ranorex, there will always be only one testsuite.

regards,

qwertzu

Re: Missing root elements <testsuites> in Rx7 Junit report

Posted: Thu Jun 01, 2017 3:13 pm
by krstcs
As qwertzu says, I believe this is by design. There is only ONE test suite run at a time by Ranorex, so it is not possible to have a <testsuites> section.

Re: Missing root elements <testsuites> in Rx7 Junit report

Posted: Tue Jun 06, 2017 7:09 pm
by jjiang1
I think even there is just one test case, it should still follow the jUnit report standard format. Isn't it?

Re: Missing root elements <testsuites> in Rx7 Junit report

Posted: Wed Jun 07, 2017 1:00 pm
by qwertzu
Hello JJiang1,

There seems to be no possible reason, why there should be a <testsuites> section when working with Ranorex.
But still, if you like, you can always add a feature request to Ranorex Uservoice Plattform.

regards,
qwertzu