Page 1 of 1

Ranorex 6 - Image folder naming logic

Posted: Fri May 27, 2016 8:39 am
by Martin
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?

Re: Ranorex 6 - Image folder naming logic

Posted: Fri May 27, 2016 10:35 am
by tejas.deshpande
I am experiencing the same problem. Is there a way to change the behaviour to what it was before Ranorex 6.0?

Re: Ranorex 6 - Image folder naming logic

Posted: Fri May 27, 2016 1:33 pm
by krstcs
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.

Re: Ranorex 6 - Image folder naming logic

Posted: Tue May 31, 2016 9:51 am
by Support Team
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

Re: Ranorex 6 - Image folder naming logic

Posted: Wed Jun 08, 2016 7:11 am
by BCTest
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?

Re: Ranorex 6 - Image folder naming logic

Posted: Thu Jun 09, 2016 12:47 pm
by Support Team
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