Updates:
        Status: Pending

Comment #1 on issue 1559 by pekka.klarck: Split Reports with rebot util - screenshots problem
http://code.google.com/p/robotframework/issues/detail?id=1559

Did I get it right that you have individual log/report files in sub folders and you generated the combined report to their parent folder? Do screenshots work in those individual reports? Are the screenshot images in those sub folders next to the report/log files?

If all above is true, the problem is that relative paths to those images are wrong in your combined report/log. Rebot doesn't touch those paths, so images are presented in log messages like <img src="screenshot-42.jpg"> both in individual and combined files. In the latter the correct path would be something like "subfolder1/screenshot-42.jpg".

This problem cannot be generically fixed in Rebot for two reasons:

- Inspecting log messages and automatically converting paths automatically would slow down report/log generation and would be very hard to do correctly. We basically should look does any log message contain anything that looks like a path and possibly update it. The risk of changing messages incorrectly is too big.

- It is generally expected that people move files referenced from log/report like this along with log/report files. Updating paths would be backwards incompatible.

Solutions that you may want to consider include the following:

- Move all images to the same directory as the combined report/log. This works great if images have unique names, but handling duplicates gets problematic. You should check could the screenshots be generated so that they are unique. That might require enhancing Selenium2Library, though.

- Edit generated log/report yourself. You can create a script to fix the paths yourself.

What do you think?

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to