Creation of an external file with test results

Ask general questions here.
RTJakobs
Posts: 2
Joined: Wed Mar 11, 2020 10:12 am

Creation of an external file with test results

Post by RTJakobs » Wed Mar 11, 2020 11:25 am

Hello,
I would like to save the test case results in an external file.
Is there a possibility? If so, is there a way to specify the file type of this file?
Thanks a lot.
With kind regards
Ria-Tamara Jakobs

McTurtle
Posts: 296
Joined: Thu Feb 23, 2017 10:37 am
Location: Benedikt, Slovenia

Re: Creation of an external file with test results

Post by McTurtle » Wed Mar 11, 2020 1:40 pm

Hi Ria,

The Ranorex Report is just such an external file and it created automatically ;)

If you want something else, then you have to really specify the requirements and explain why the Ranorex report does not cut it. Only then we are able to make suggestions...

Regards,
McTurtle

User avatar
Stub
Posts: 341
Joined: Fri Jul 15, 2016 1:35 pm

Re: Creation of an external file with test results

Post by Stub » Wed Mar 11, 2020 2:45 pm

You could probably use a code module in a late Teardown to iterate the Test Suite containers and write out the results of each Test Case to an external file? I am sure I've read a similar technique mentioned elsewhere on these forums recently. It rings a bell.

RTJakobs
Posts: 2
Joined: Wed Mar 11, 2020 10:12 am

Re: Creation of an external file with test results

Post by RTJakobs » Thu Mar 12, 2020 10:40 am

I would like to share the results with the TM4J into JIRA.
So far I have had the results saved to a PDF via Ranorex. But a PDF would have to be parsed first to be processed further.
Therefore the question would be, if you can specify in advance that the report file is xml, html or json.

McTurtle
Posts: 296
Joined: Thu Feb 23, 2017 10:37 am
Location: Benedikt, Slovenia

Re: Creation of an external file with test results

Post by McTurtle » Thu Mar 12, 2020 3:28 pm

Hey RTJakobs,

You can create html reports by renaming the ending of the Ranorex report in the report-tab of the test suite properties:
htmlreport.png
htmlreport.png (13.29 KiB) Viewed 111 times
Does this help?

Regards,
McTurtle