Name: iaR10016 Date: 04/03/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.5.0-b03, JDK1.4.2-b19, JDK1.4.1, JDK1.4.0
Testbase : RegTest-cte
Platform[s] : RedHat Advanced Server 2.1 (Gnome), Solaris 9 (sparc) (CDE)
switch/Mode : -client, -server
Falling test[s]: CTE_REGTEST/Generic/4199374/Bug4199374.java
RegTest-cte CTE_REGTEST/Generic/4199374/Bug4199374.java test fails with JDK1.5.0-b03, JDK1.4.2, JDK1.4.1.
on Solaris sparc, Solaris x86, RedHat Advanced Server2.1.
Please, note that the test source code was changed in JDK1.5.0 and the test does not have "manual" keyword
(the test has "manual" keyword in JDK1.4.2-b19, although it does not require any user actions).
When I run manual test from JDK1.4.2-b19 Regression-cte testsuite, it works fine and passes with
JDK1.5.0-b03.
Probably, the reason of the failure is that the test incorrectly works with Robot.
Test source location:
=====================
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4199374/Bug4199374.java
jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results/tiger/b03/regtest/sparc/sol9_sparc-server_smp_novo48/workDir/cte/CTE_REGTEST/Generic/4199374/Bug4199374.jtr
How to reproduce:
=================
Run the following script (you may need to change its variables)
--- script start ---
#!/bin/sh
RESULT_DIR=`pwd`
WORK_DIR=$RESULT_DIR/workDir/test
REPORT_DIR=$RESULT_DIR/reportDir
JT_HOME="/net/linux-15/export/home/java/jct"
JAVA_HOME="/net/linux-15/export/home/java/jdk1.5.0/sparc"
TEST_BASE_PATH="/net/linux-15/export/home/java/regtest/cte"
TESTWITH=$JAVA_HOME
TESTJAVA=$JAVA_HOME
JTOPTS="-server"
TESTVMOPTS="-server"
CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar:$JT_HOME/jemmy/jemmy.jar"
export JAVA_HOME
export JT_HOME
export TESTWITH
export CLASSPATH
mkdir -p $WORK_DIR/scratch 2>&1
mkdir -p $WORK_DIR/jtData 2>&1
mkdir -p $REPORT_DIR 2>&1
#rm $WORK_DIR/jtData/ResultCache.jtw 2>&1
cd $WORK_DIR/scratch
$JAVA_HOME/bin/java -cp $CLASSPATH $JTOPTS -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="novo48" -Dprogram=jtreg com.sun.javatest.regtest.Main -a -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH/CTE_REGTEST/Generic/4199374/Bug4199374.java"
--- script end ---
Script output:
==============
Test output (jtr part):
=======================
----------System.out:(27/2358)----------
Button got focus.
Trace:
Start to wait frame "Frame with title "RequestFocus Test"" opened
Trace:
Frame "Frame with title "RequestFocus Test"" has been opened in 10 milliseconds
javax.swing.JFrame[frame0,0,24,70x52,layout=java.awt.BorderLayout,title=RequestFocus
Test,resizable,normal,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,5,18,59x28,layout=javax.swing.JRootPane$RootLayout,alignmentX=null,alignmentY=null,border=,flags=1409,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]
Trace:
Start to wait action "Wait AbstractButton with text "Test" loaded"
Trace:
"Wait AbstractButton with text "Test" loaded" action has been produced in 11 milliseconds with result
:
javax.swing.JButton[,0,0,59x28,layout=javax.swing.OverlayLayout,alignmentX=0.0,alignmentY=0.5,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@8aeb74,flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=false,rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=Test,defaultCapable=true]
Button lost focus.
Frame got focus.
Frame lost focus.
Button got focus.
Trace:
Start to wait window "Any Window" opened
Trace:
Window "Any Window" has been opened in 0 milliseconds
javax.swing.JWindow[win0,10,80,304x22,layout=java.awt.BorderLayout,rootPaneCheckingEnabled=true]
Trace:
Start to wait action "Wait Any javax.swing.JTextField loaded"
Trace:
"Wait Any javax.swing.JTextField loaded" action has been produced in 2 milliseconds with result
:
javax.swing.JTextField[,0,0,304x22,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=null,alignmentY=null,border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@d1e7c2,flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=javax.swing.plaf.ColorUIResource[r=0,g=0,b=0],disabledTextColor=javax.swing.plaf.ColorUIResource[r=153,g=153,b=153],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=0,left=0,bottom=0,right=0],selectedTextColor=javax.swing.plaf.ColorUIResource[r=0,g=0,b=0],selectionColor=javax.swing.plaf.ColorUIResource[r=204,g=204,b=255],columns=30,columnWidth=10,command=,horizontalAlignment=LEADING]
Button lost focus.
Test Failed
----------System.err:(14/727)----------
java.lang.RuntimeException: Failed
at Test4199374.main(Test4199374.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
at java.lang.Thread.run(Thread.java:534)
JavaTest Message: Test threw exception: java.lang.RuntimeException: Failed
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Failed
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Failed
test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Failed
Specific machine info:
======================
Hostname: linux-24
OS: RedHat Advanced Server 2.1 (Gnome)
Hostname: novo48
OS: Solaris 9 (sparc) (CDE)
======================================================================