Community
Participate
Working Groups
Jubula's Image View is useful for analyzing Test Results within the ITE. I think it would be even more useful if we could save the contents of the Image View to the file system ("Save as...", or "Export..."). This would allow the screenshot in question to be attached to a bug report.
Meanwhile, Jubula also has the ability to generate a Mylyn Task from a failed Test Step. I think it would also be useful to (optionally) attach the screenshot to the Task.
@Triaged:+
Created attachment 235593 [details] Patch for Bug 373928 - Add "Save as..." to Image View I added the command and the handler with enablement and property tester to save an image shown in the image view to a chosen directory.
Nice work, your contribution looks great. Only minor changes should be done: * Create the same commit with your email address from Bredex. * Change the visibility of the attribute ImageViewPropertyTester.HAS_IMAGE from public to private, because it is used only locally. * Use "SaveImageAs=Save Image &As" instead of "SaveImageAs=Save Image As" to support ALT+A as shortcut in context menu. * Discuss, which rules should be relevant to generate the default file name, so that it can be saved, e.g. length of string, used char set, and OS (in)dependend conversion.
Created attachment 235653 [details] Patch for Bug 373928 - Add "Save as..." to Image View - Version2 including raimar's feedback
Comment on attachment 235653 [details] Patch for Bug 373928 - Add "Save as..." to Image View - Version2 Added IPLog flag for the final patch from Sebastian.
I have pushed the patch with http://git.eclipse.org/c/jubula/org.eclipse.jubula.core.git/commit/?id=692190ee0fe3b191e0da24f70dc3dd2cbc9cd459
Now substr is used from StrinUtil to avoid exceptions while cutting the filename. http://git.eclipse.org/c/jubula/org.eclipse.jubula.core.git/commit/?id=ae6a8ecc7d1b629ca113dfe1f268149a795f5eed
Verified and tested. A context menu and a toolbar icon is now visible and usable for saving the image from the image view.