Issue Details (XML | Word | Printable)

Key: FEST-6
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Alex Ruiz
Reporter: Alex Ruiz
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
FEST

Link to screenshot is broken in TestNG emailable-report.html (issue 267)

Created: 01/Mar/09 08:18 PM   Updated: 09/Mar/09 12:56 AM
Component/s: Swing
Affects Version/s: FEST-Swing 1.1
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide

Reported by vnguyen.sqa, Dec 19, 2008

What is the expected output? What do you see instead?
Screenshot listener saves image in '<testng-output-dir> / <suite-name> / image.png'. Emailable-report.html is in '<tesng-output-dir>' and expects image.png in the same directory.

What version of the product are you using? On what operating system?
fest-swing-ng-1.0b1
testng-5.8


Original report: Google Code (issue 267)



Alex Ruiz added a comment - 01/Mar/09 08:19 PM

I don't think there is a solution for this issue. I haven't found a way to specify the correct path in the e-mailable report. By looking at TestNG's code, EmailableReporter is just another implementation of IReporter. It isn't treated as a special case, therefore there I haven't found a way into hooking into the reporting mechanism, other than using the generic Reporter.

Another alternative is to automatically copy the images to the same folder where the e-mailable report is. I don't like this approach because it duplicates the image files and can potentially occupy a considerable amount of disk space (depending on the number and size of the images.)

I'm inclined to close this issue as "Won't Fix". But I'm just going to leave it open to revisit it later. This issue won't make it to the "Tirane" release (Swing module 1.1).