Page 1 of 1

Generate JUnit report via code

Posted: Thu Nov 08, 2018 6:51 pm
by wellingtonsantana
Hello,
I'm taking a little time looking for a solution to generate Junit report file (as Propertiers -> Report) via code.
There are nothing in my searches on classes TestReport, Report, ReportEnvir, ReportEnvironment, etc.
Anyone has a clue for this? :roll:

Thanks,

Re: Generate JUnit report via code

Posted: Fri Nov 09, 2018 2:47 pm
by qwertzu
hey,
why exactly would you like to create it via code?
The JUnit report function generally creates a compatible copy of the Ranorex report which is always created after the test finished.
So it won't be possible to create it during runtime, before the creation of the normal report.
regards, qwertzu

Re: Generate JUnit report via code

Posted: Fri Nov 09, 2018 3:05 pm
by wellingtonsantana
That is need, call this function inside of my code.
I'm just using Ranorex library's to execute test, but creating scripts by my own (not via Ranorex IDE).
Do you know where is function?

Re: Generate JUnit report via code

Posted: Mon Nov 12, 2018 9:52 am
by odklizec
Hi,

Examining Ranorex API, does not reveal there is a function for this. So there is either no API or its not public?...
https://www.ranorex.com/Documentation/Ranorex/
I think your best hope is to use command line parameter /ju (check user guide for more details)