Create zipped report from command line

Ranorex Spy, Recorder, and Studio.
lakibuk
Posts: 8
Joined: Wed Mar 02, 2016 12:30 pm

Create zipped report from command line

Post by lakibuk » Wed Jun 07, 2017 4:04 pm

I am trying to create a zipped report with the following command. (Ranorex 6.0)
But no report is created.

Code: Select all

C:\TestCROSS\Debug\TestCROSS.exe /zr /zrf:C:\TestCROSS\Report\TestCROSS-Report.rxzlog
This code works (unzipped):

Code: Select all

C:\TestCROSS\Debug\TestCROSS.exe /rf:C:\TestCROSS\Report\TestCROSS-Report.rxzlog

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

Re: Create zipped report from command line

Post by Stub » Thu Jun 08, 2017 8:05 am

That's what I do, so I can include the test report in the results email. The only difference I can see is using quotes around the filename, but your working example doesn't do that, so it's not that. Here's an example of what I am doing:

Code: Select all

"C:\blah\blah\RanorexTests.exe" /ts:RanorexTests.rxtst /rc:TestRun /rl:Debug /zr /zrf:"C:\Blah\RanorexTests\Reports\RanorexTests.rxzlog"
Yours is outputting to a "Report" directory vs mine in "Reports".

I pulled the command line out of the log file our build/test system emailed to me. It includes the very .rxzlog file, so I know it works. I am using Ranorex v6.2.1 however.

lakibuk
Posts: 8
Joined: Wed Mar 02, 2016 12:30 pm

Re: Create zipped report from command line

Post by lakibuk » Thu Jun 08, 2017 9:37 am

Thanks. Basically you are doing the same.

I found out it's a path problem.
/zrf is using a different output directory than /rf.
Setting the Report File Directory explicitly helped.