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.
Include the result of a Qt test in Ranorex report
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: Include the result of a Qt test in Ranorex report
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:
I hope this helps!
Regards,
Ned
C# File.ReadAllText
Example Ranorex Report methods:
Code: Select all
Report.LogHtml(ReportLevel.Info, "Qt Test", "MyHTML");
Report.Info("Qt Test", "My Message")
Regards,
Ned