-
Enhancement
-
Resolution: Fixed
-
P3
-
9
-
b12
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8239494 | openjdk8u252 | Yuri Nesterenko | P3 | Resolved | Fixed | b04 |
JDK-8275210 | 8u321 | Srinivas Mandalika | P3 | Resolved | Fixed | b02 |
Presently for testing of JDK client we use test suites of two kinds, historically called regression and functional (internal). In JDK9 we plan an attempt to unify them and ultimately get rid of the functional suites.
One of the first technical problems in this refactoring attempt is a multitude of the java.awt.Robot wrappers. There are some really elaborate libraries enhansing Robot which all we cannot and should not port to jtreg.
Fortunately, test writers almost never use complex features of these wrappers. So here's our plan:
(1) describe the real practice of the robot use in the functional tests (please don't worry, that's out of scope of this request);
(2) write a minimal useful RobotWrapper extending java.awt.Robot;
(3) start functional tests refactoring;
(4) cautiously move enhancements to the java.awt.Robot trying not to break backward compatibility of thousands existing tests. For instance, waitForIdle should use realSync() but there definitely
are plenty of tests using it on EDT: or maybe not -- we should spent some time for background research in parallel with (3).
One of the first technical problems in this refactoring attempt is a multitude of the java.awt.Robot wrappers. There are some really elaborate libraries enhansing Robot which all we cannot and should not port to jtreg.
Fortunately, test writers almost never use complex features of these wrappers. So here's our plan:
(1) describe the real practice of the robot use in the functional tests (please don't worry, that's out of scope of this request);
(2) write a minimal useful RobotWrapper extending java.awt.Robot;
(3) start functional tests refactoring;
(4) cautiously move enhancements to the java.awt.Robot trying not to break backward compatibility of thousands existing tests. For instance, waitForIdle should use realSync() but there definitely
are plenty of tests using it on EDT: or maybe not -- we should spent some time for background research in parallel with (3).
- backported by
-
JDK-8239494 Create wrapper for awt.Robot with additional functionality
- Resolved
-
JDK-8275210 Create wrapper for awt.Robot with additional functionality
- Resolved
- relates to
-
JDK-8039749 Migrate needed functionality from all subclasses of java.awt.Robot in jdk/test directory to the ancestor
- Open
-
JDK-8037374 Add to java.awt.Robot some popular methods
- Open