Run test suite with TestRunner

Ask general questions here.
c676228
Posts: 176
Joined: Mon Apr 06, 2015 5:40 am

Run test suite with TestRunner

Post by c676228 » Wed Sep 30, 2015 5:54 pm

Hi,

Want to get tips from all of you.
I am thinking of only install Ranorex TestRunner for testers with out Ranorex Studio.
Does that mean when I get reports from test result, I won't be able to debug the code easily since report logs are not linked to code.

Regards,
Betty

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Run test suite with TestRunner

Post by krstcs » Wed Sep 30, 2015 8:50 pm

If you just want people to be able to look at the reports, my suggestion is to change the report name to HTML, so it can be opened on any web browser. I do this an have Jenkins publish the resulting reports of my runs so that anyone can look at them at any time.

As far as being able to link from the report back to code, you need to open the report in Ranorex Studio and that means having a valid license for Studio (not just a runtime license).
Shortcuts usually aren't...

c676228
Posts: 176
Joined: Mon Apr 06, 2015 5:40 am

Re: Run test suite with TestRunner

Post by c676228 » Fri Oct 02, 2015 12:53 am

Hi krstcs,

Good tip for report format.

You mean even the report is created on a machine without Ranorex Studio installed, it still can be linked to the code if the report is viewed on another computer with Ranorex Studio is installed?

Regards,
Betty

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Run test suite with TestRunner

Post by krstcs » Fri Oct 02, 2015 4:04 pm

If the report is opened in Ranorex Studio while the corresponding test project is open in the SAME Studio instance, then yes, it will open the correct files when clicking the "Go to" links, no matter where the test was run.

This works even if you change the report name, because the rxlog file is actually an HTML file that is not named HTML. If you change the file extension to HTML (and the rxlog.data to html.data), it then opens in any browser (assuming you have the browser settings set to allow local scripts). It will also still link when opened in Ranorex Studio.

My suggestion is to always change the names of reports to HTML since it works in more places.
Shortcuts usually aren't...

c676228
Posts: 176
Joined: Mon Apr 06, 2015 5:40 am

Re: Run test suite with TestRunner

Post by c676228 » Thu Oct 08, 2015 4:56 pm

krstcs,

Thanks so much. Great tips and great explanation.

Betty