JDK-8080868 : [TESTBUG] UI tests fail on slow devices
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8,8u60
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • CPU: generic
  • Submitted: 2015-05-21
  • Updated: 2023-01-03
  • Resolved: 2023-01-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdResolved
Related Reports
Relates :  
Description
The tests generate some user input event by robots (mouse events or key events) and immediately expect results. On slow devices in batch mode such approach leads to failure.
Other possibility: SunToolkit.realSync does not work as expected.
One-by-one tests passes.

JDK-Regression test suite.
Comments
God point about unexpected focus change. Need to find out a way to look at real job execution.
21-05-2015

And, e.g. javax/swing/JMenu/4515762/bug4515762.java sets autodelay 250 for the robot. Note that if tests fail running in a sequence but pass one by one it may sometimes mean (1) some asocial tests leave key releases unprocessed; (2) original focused widget (such as Terminal) tends to steal focus from Java. Second trouble is easily detected just looking on the screen if you have several GUI tests failing in a batch AND a pristine environment (not VNC etc. but exact environment of the failure). As to the first failure, see for example JDK-8064575 and several more fixes in jdk9 to that effect.
21-05-2015

What windows manager do you have on those systems? How about JDK-7033533 backport for 8u60, is it in place together with JDK-8051857 ?
21-05-2015

RULE javax/swing/JMenu/4515762/bug4515762.java Exception java.lang.RuntimeException: Action has not been received RULE javax/swing/JMenu/4692443/bug4692443.java Exception java.lang.RuntimeException: Test failed. RULE javax/swing/JPopupMenu/6800513/bug6800513.java Exception java.lang.NullPointerException
21-05-2015