Include the result of a Qt test in Ranorex report

Class library usage, coding and language questions.
regis87
Posts: 2
Joined: Wed Aug 14, 2019 9:26 am

Include the result of a Qt test in Ranorex report

Post by regis87 » Tue Jul 21, 2020 5:17 pm

Hello,

I need to run a Qt test suite inside a Ranorex project (because it requires actions on the UI).
I'm able to run the script, and I've automated the clicks and key sequences.
Then I wait for the end of the script ("Wait for" "NotExists" on the CommandLine window)

The Qt test script can generate an output result in multiple formats: txt, xml, lightxml, teamcity, or xunitxml (but it seems the last one doesn't work for me): https://doc.qt.io/archives/qt-5.10/qtest-overview.html

My issue is that I would like to include the result of my Qt test in the Ranorex report, so that I can see at least if globally the test passed or not. But a better solution would be to be able to get on the Ranorex report each and every subtest of the Qt Test campaign (to see which one failed or passed)

Is it possible?
Thank you for your help.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12143
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Include the result of a Qt test in Ranorex report

Post by Support Team » Thu Jul 23, 2020 2:37 pm

I do not have experience with Qt test, but if the Qt test can output to XML or txt, you can simply use the Ranorex Report class to output to the test's report file. Use System.IO to read the file, then use Ranorex.Report to output it to the test's report.

C# File.ReadAllText
Example Ranorex Report methods:

Code: Select all

Report.LogHtml(ReportLevel.Info, "Qt Test", "MyHTML");
Report.Info("Qt Test", "My Message")
I hope this helps!

Regards,
Ned
.
Image