-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
b08
-
generic
-
generic
Name: iaR10016 Date: 04/01/2004
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.5.0-b44
Testbase : Regression-test
Platform[s] : all
Falling test: java/awt/LightweightComponent/LightweightDragTest/LightweightDragTest.html
Manual Regression test java/awt/LightweightComponent/LightweightDragTest/LightweightDragTest.html fails with JDK1.5.0-b44
on all platforms.
Test Description reads:
...
-- There are 4 steps to this test --
1. You will see a frame with two circles drawn in it
2. Put the mouse over the center of one of the circles and press and hold hold the left mouse button
3. While holding the button down, drag the mouse in and out of the circles
4. You should see enter and exit events printed to System.out as the mouse crosses the circles' bounding boxes.
...
There are three problems related with this bug:
1. It is expected that a frame with two circles appears after the test starts, however nothing happens actually.
The reason of this failure is that when the test is executed as a part of Regression testsuite it starts using appletviewer.
LightweightDragTest class does not contain corresponding init() method - the tested frame is started from main() function only.
2. There is no way to control System.out when the test starts as a part of Regression testsuite (using Javatest), so user is
unable to check enter and exit mouse events as it is described in p.4 of the test Description.
3. The Description contains typo: p.2 should be changed to
"Put the mouse over the center of one of the circles and press and hold the left mouse button" instead of
"Put the mouse over the center of one of the circles and press and hold hold the left mouse button"
Test source location:
=====================
/java/re/jdk/1.5.0/promoted/all/b44/ws/j2se/test/java/awt/LightweightComponent/LightweightDragTest/LightweightDragTest.html
jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b44/regtest/linux/QuickSilver_linux-17/workDir/test-manual/java/awt/LightweightComponent/LightweightDragTest/LightweightDragTest.jtr
How to reproduce:
=================
Run the following script (you may need to change its variables):
--- script start ---
#!/bin/sh
#Paths in Java Software:
TESTJAVA="/java/re/jdk/1.5.0/promoted/all/b44/binaries/linux-i586"
TESTBASE="/java/re/jdk/1.5.0/promoted/all/b44/ws/j2se/test"
#Alternative paths outside Java Software
#TESTJAVA="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b44/binaries/linux-i586"
#TESTBASE="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b44/ws/j2se/test"
#Alternative paths for the NSK site:
#TESTJAVA="/net/linux-15/export/home/java/jdk1.5.0/linux"
#TESTBASE="/net/linux-15/export/home/java/regtest.tiger/test"
cp $TESTBASE/java/awt/LightweightComponent/LightweightDragTest/* .
$TESTJAVA/bin/javac *.java
$TESTJAVA/bin/appletviewer LightweightDragTest.html
--- script end ---
Specific machine info:
======================
Hostname: linux-17
OS: QuickSilver
======================================================================
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.5.0-b44
Testbase : Regression-test
Platform[s] : all
Falling test: java/awt/LightweightComponent/LightweightDragTest/LightweightDragTest.html
Manual Regression test java/awt/LightweightComponent/LightweightDragTest/LightweightDragTest.html fails with JDK1.5.0-b44
on all platforms.
Test Description reads:
...
-- There are 4 steps to this test --
1. You will see a frame with two circles drawn in it
2. Put the mouse over the center of one of the circles and press and hold hold the left mouse button
3. While holding the button down, drag the mouse in and out of the circles
4. You should see enter and exit events printed to System.out as the mouse crosses the circles' bounding boxes.
...
There are three problems related with this bug:
1. It is expected that a frame with two circles appears after the test starts, however nothing happens actually.
The reason of this failure is that when the test is executed as a part of Regression testsuite it starts using appletviewer.
LightweightDragTest class does not contain corresponding init() method - the tested frame is started from main() function only.
2. There is no way to control System.out when the test starts as a part of Regression testsuite (using Javatest), so user is
unable to check enter and exit mouse events as it is described in p.4 of the test Description.
3. The Description contains typo: p.2 should be changed to
"Put the mouse over the center of one of the circles and press and hold the left mouse button" instead of
"Put the mouse over the center of one of the circles and press and hold hold the left mouse button"
Test source location:
=====================
/java/re/jdk/1.5.0/promoted/all/b44/ws/j2se/test/java/awt/LightweightComponent/LightweightDragTest/LightweightDragTest.html
jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b44/regtest/linux/QuickSilver_linux-17/workDir/test-manual/java/awt/LightweightComponent/LightweightDragTest/LightweightDragTest.jtr
How to reproduce:
=================
Run the following script (you may need to change its variables):
--- script start ---
#!/bin/sh
#Paths in Java Software:
TESTJAVA="/java/re/jdk/1.5.0/promoted/all/b44/binaries/linux-i586"
TESTBASE="/java/re/jdk/1.5.0/promoted/all/b44/ws/j2se/test"
#Alternative paths outside Java Software
#TESTJAVA="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b44/binaries/linux-i586"
#TESTBASE="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b44/ws/j2se/test"
#Alternative paths for the NSK site:
#TESTJAVA="/net/linux-15/export/home/java/jdk1.5.0/linux"
#TESTBASE="/net/linux-15/export/home/java/regtest.tiger/test"
cp $TESTBASE/java/awt/LightweightComponent/LightweightDragTest/* .
$TESTJAVA/bin/javac *.java
$TESTJAVA/bin/appletviewer LightweightDragTest.html
--- script end ---
Specific machine info:
======================
Hostname: linux-17
OS: QuickSilver
======================================================================