JDK-6459286 : REGRESSION:two AWT(Focus) tests are failing with 131_19-b02 but Passing with 131_19-b01
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.3.1_19
  • Priority: P1
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris
  • CPU: generic
  • Submitted: 2006-08-11
  • Updated: 2014-02-27
  • Resolved: 2006-08-19
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
1.3.1_19 b03Fixed
Related Reports
Relates :  
Relates :  
Description
REGRESSION:two AWT(Focus) tests are failing with 131_19-b02 but Passing with 131_19-b01

The two tests are failing in Solaris but passing in Windows
Testmachine Information:
------------------------
bash-2.03$ uname -a
SunOS urts078.india 5.8 Generic_117350-26 sun4u sparc SUNW,Ultra-5_10
Testbase on testmachine is at /export/updates/awt_131/awt
131_19-b02/b01 JDK is at /export/updates/jdks/j2sdk1_3_1_19-b02/b01

Failed Testcase :
-----------------
<131-awt-ws>/Focus/src/automated/LightWeight/KeyEventtoComponent/KeyEventtoComponentTest.html
<131-awt-ws>/Focus/src/automated/Mixed/ClickOppositeWindows/ClickOppositeWindowsTest1/ClickOppositeWindowsTest1.html 

Error description:
------------------
Execution failed: Applet thread threw exception: java.lang.RuntimeException: TEST FAILED: Keyboard events are received by the componentsdon't have focus

    * Focus/src/automated/Mixed/ClickOppositeWindows/ClickOppositeWindowsTest1/ClickOppositeWindowsTest1.html: Click Components in opposite windows 

Execution failed: Applet thread threw exception: java.lang.RuntimeException: TEST FAILED: the focus owner not receives the key events

    * Focus/src/automated/LightWeight/KeyEventtoComponent/KeyEventtoComponentTest.html: KeyBoard events are received only by that one component in that active window. 

Please check the attached report for more information
131_19-b02-report.tar.Z is for 131_19-b02 execution
131_19-b01-report.tar.Z is for 131_19-b01 execution

Master WS is at:
/net/urts071.india.sun.com/export6/testSuites/1.3.1/awt
Steps to execute with JTREG:
-----------------------------
1.
Copy the awt WS to a local machine (or) to a share location in server(Where Samba is running)
WS can found in :
/net/urts071.india.sun.com/export6/testSuites/1.3.1/awt
2.
 Touch a TEST.ROOT at the very top level -- same level of all test suite.
3.
 Set the environment variable JAVA_HOME to proper jdk.
4.
Set the environment variable JTREG_HOME to proper JTREG Platform script file
For Ex : export JTREG_HOME=/net/urts071.india.sun.com/export2/tools/sqe-tools2.1.6fcs/solaris
5.
sh runauto.ksh
6.
In the JavaTest GUI select the Test Parameter tab
7. Under Which tests to Run
Add only the above two testcases
8.Select Test Execution Status tab and click on Start button to run the tests


Steps to execute without JTREG
------------------------------
1.
Copy the awt WS to a local machine (or) to a share location in server(Where Samba is running)
WS can found in :
/net/urts071.india.sun.com/export6/testSuites/1.3.1/awt
2. Go to the failed test case location
For Ex.
CD to <131-awt-WS>/Focus/src/automated/LightWeight/KeyEventtoComponent
3.
Compile the java files with 131_19-b02 jdk
4
Execute the html file to load the applet
For Ex:
<131_19-b02-JDK>/bin/appletviewer KeyEventtoComponentTest.html

Note : 
to compile and execute you need awtsqe.jar on CLASSPATH
awtsqe.jar file is available on the 131-AWT WS
It is available on 
/net/urts071.india.sun.com/export6/testSuites/1.3.1/awt/awtsqe.jar

Comments
SUGGESTED FIX Backout fix of 6356720 from 131_19 b02.
11-08-2006

EVALUATION Looks like fix for 6356720 caused further regression and this will be backout in 1.3.1_19 b03 build.
11-08-2006