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
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
If I edit back slash \ to forward slash /, it's ok
Screenshot at Dec 03 10-46-18_2.jpg
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
You do not have the required permissions to view the files attached to this post.

krstcs
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: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

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)

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: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

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)