How to change \ to / slash of the image path on TeamCity

Ask general questions here.
phoenixnghi
Posts: 11
Joined: Thu Nov 26, 2015 10:34 am

How to change \ to / slash of the image path on TeamCity

Post by phoenixnghi » Thu Dec 03, 2015 8:57 am

Hello everyone,

Currently, I attach Ranorex reports to TeamCity builds as artifacts
Screenshot at Dec 03 10-41-16.png
Screenshot at Dec 03 10-41-16.png (142.16 KiB) Viewed 913 times
But when I open the *.html file, the browser cannot show the screenshot due to incorrect path name
Screenshot at Dec 03 10-43-44.png
Screenshot at Dec 03 10-43-44.png (267.26 KiB) Viewed 913 times
If I edit back slash \ to forward slash /, it's ok
Screenshot at Dec 03 10-46-18_2.jpg
Screenshot at Dec 03 10-46-18_2.jpg (87.78 KiB) Viewed 913 times
As I see in the .data file:

Code: Select all

errimg=".\ios_vn_5193576a_trace.jpg"
errthumb=".\ios_vn_5193576a_trace_thumb.jpg">
Is it only be viewed locally?

Now I convert to pdf as a workaround, but the pdf layout is not convenient to have a quick view

Please help me :cry:
Thank you

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

Re: How to change \ to / slash of the image path on TeamCity

Post by krstcs » Fri Dec 04, 2015 3:20 pm

I believe this is a bug in Ranorex.

The Ranorex report file is HTML, so all folder/file separators should be the FORWARD-SLASH ("/"). It appears that Ranorex is using the Windows separator instead of the ansi/html separator.
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: How to change \ to / slash of the image path on TeamCity

Post by Support Team » Thu Dec 10, 2015 5:05 pm

Hi phoenixnghi,

We had a similar issue in one of our older versions and that should be fixed in Ranorex 5.2.
May I ask you which version you are currently using?

In the meantime, I'll try reproducing this problem in our controlled environment.

Thank you for your patience.
Regards,
Markus (S)
.
Image

phoenixnghi
Posts: 11
Joined: Thu Nov 26, 2015 10:34 am

Re: How to change \ to / slash of the image path on TeamCity

Post by phoenixnghi » Fri Dec 11, 2015 8:30 am

Hi Markus,
I'm using the latest version 5.4.4.26486
Last edited by phoenixnghi on Thu Feb 11, 2016 1:47 pm, edited 1 time in total.

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

Re: How to change \ to / slash of the image path on TeamCity

Post by Support Team » Mon Dec 14, 2015 1:37 pm

Hi phoenixnghi,

I was able to reproduce this problem in Chrome and Firefox. It seems that the link is resolved correctly in Internet Explorer.

I've also made an entry in our internal Bug Tracking system for further investigation.
Thank you for reporting this problem.

Regards,
Markus (S)
.
Image