Ranorex 6 - Image folder naming logic

Experiences, small talk, and other automation gossip.
Martin
Posts: 152
Joined: Fri Aug 15, 2014 12:24 pm

Ranorex 6 - Image folder naming logic

Post by Martin » Fri May 27, 2016 8:39 am

Hello

Until Ranorex 6.0 the naming convention for image folders for reports has been inherited from the test name when running it through Jenkins.

Eg.
Jenkins job: Test_job
Conf for report as command line argument: /rf:C:\Jenkins\workspace\Test_Job\Test-job-%BUILD_NUMBER%.html
Image folder created when test fails: images_Test-Job-%BUILD_NUMBER%

But after upgrading to Ranorex 6.0 the naming convention has changed.

Eg.
Jenkins job: Test_job
Image folder created when test fails: images_Test-j092834aa

This makes copying report related files fail.

For support: Was this a feature and if so why? What is the new naming logic behind it? Might this be a bug?

tejas.deshpande
Posts: 32
Joined: Fri May 20, 2016 9:43 am

Re: Ranorex 6 - Image folder naming logic

Post by tejas.deshpande » Fri May 27, 2016 10:35 am

I am experiencing the same problem. Is there a way to change the behaviour to what it was before Ranorex 6.0?

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

Re: Ranorex 6 - Image folder naming logic

Post by krstcs » Fri May 27, 2016 1:33 pm

This appears to be a bug. The naming conventions for reports, and the report name place-holders were not supposed to have changed in 6.0.

Ranorex team, please move this thread to the Bug Reports sub-forum.
Shortcuts usually aren't...

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

Re: Ranorex 6 - Image folder naming logic

Post by Support Team » Tue May 31, 2016 9:51 am

Hi Everyone,

There was a breaking change in Ranorex 6.0 concerning the naming convention of image folders.
Information about the breaking change and possible workarounds can be found in the release notes.

The name of the folder where screenshots are placed for a report had to be changed (to enforce a character limit). The folder name now contains a hash value of the report name and is not equal to the report name any more (still, if the report name is constant, i.e. does not contain placeholders, then the screenshot folder name is also constant).

Possible workarounds
  • Use the Ranorex.Report.Copy method to copy the entire report to another destination
  • Use the compressed report format and (optionally) unzip the report in the destination folder with the Ranorex.ReportViewer.exe using following command line:
    <Ranorex_Installation_Folder>\bin\Ranorex.ReportViewer.exe /unzipreport <reportFileName>.rxzlog
The above-mentioned breaking change is a result of the following bug fix:
  • Fixed screenshots not being shown if the report filename is too long
I hope this information will help you.

Sincerely,
Johannes
.
Image

BCTest
Posts: 88
Joined: Tue Jun 03, 2014 10:15 am
Location: Hamburg, Germany

Re: Ranorex 6 - Image folder naming logic

Post by BCTest » Wed Jun 08, 2016 7:11 am

Support Team wrote:The folder name now contains a hash value of the report name and is not equal to the report name any more (still, if the report name is constant, i.e. does not contain placeholders, then the screenshot folder name is also constant).
Can you show us the calculation of this hash value so we can re-calculate them?

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

Re: Ranorex 6 - Image folder naming logic

Post by Support Team » Thu Jun 09, 2016 12:47 pm

Hi BCTest,

May I ask to describe why you will need to convert the hash value? Did you have a look at the above-mentioned workarounds? Probably we can find a different solution for your current issue.

Sincerely,
Johannes
.
Image