Bug 520012 - Screenshots.takeScreenshot fails due to classpath error
Summary: Screenshots.takeScreenshot fails due to classpath error
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Releng (show other bugs)
Version: 4.7   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.8 M1   Edit
Assignee: Lakshmi P Shanmugam CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 466636
  Show dependency tree
 
Reported: 2017-07-21 07:43 EDT by Lakshmi P Shanmugam CLA
Modified: 2017-12-07 03:38 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lakshmi P Shanmugam CLA 2017-07-21 07:43:01 EDT
Steps to reproduce:
1. Call Screenshots.takeScreenshot() from org.eclipse.test.performance plug-in in a JUnit test.
2. Run the test as a JUnit test plug-in.

Taking screenshot fails with error - Error: Could not find or load main class org.eclipse.test.internal.AwtScreenshot

This is caused due to wrong classpath passed to the ProcessBuilder in AwtScreenshot.dumpAwtScreenshot().
Comment 1 Eclipse Genie CLA 2017-07-21 07:49:51 EDT
New Gerrit change created: https://git.eclipse.org/r/101722
Comment 2 Lakshmi P Shanmugam CLA 2017-07-21 07:54:57 EDT
The Screenshots API is currently used in SWT tests, but there is no problem as it is run as a "JUnit Test". But when using it in a Platform UI test which is run as a "JUnit Test Plug-in", the problem exists.
Comment 4 Dani Megert CLA 2017-07-31 05:23:22 EDT
Is this fixed?
Comment 5 Sravan Kumar Lakkimsetti CLA 2017-07-31 05:34:49 EDT
(In reply to Eclipse Genie from comment #3)
> Gerrit change https://git.eclipse.org/r/101722 was merged to [master].
> Commit:
> http://git.eclipse.org/c/platform/eclipse.platform.releng.git/commit/
> ?id=90ba831066426b52000e8510b4a59b3a7d07d7a1

Its fixed and pushed to master on 21 july
Comment 6 Eclipse Genie CLA 2017-08-16 05:34:05 EDT
New Gerrit change created: https://git.eclipse.org/r/103153