Name: asR10013 Date: 01/22/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.4.2-b13
Testbase : Regression-CTE
Falling test[s]:
CTE_REGTEST/Generic/4346409/Filvaeljartest.java
Regression-CTE CTE_REGTEST/Generic/4346409/Filvaeljartest.java fails if
jemmy.jar is not placed at the path hardcoded in 4346409.sh.
Many other tests from the suite that use jemmy.jar just require
the proper CPAPPEND EnvVar parameter.
4346409.sh can be changed as follows:
CLASSPATH=.${PS}${TESTCLASSES}${PS}${CPAPPEND}; export CLASSPATH
${TESTJAVA}${FS}bin${FS}jar xvf ${TESTSRC}${FS}test_dir.jar
chmod 644 test_dir
${TESTJAVA}${FS}bin${FS}java -fullversion
${TESTJAVA}${FS}bin${FS}java -classpath ${CLASSPATH} Test4346409
Test source location:
=====================
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4346409/Filvaeljartest.java
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="h:/java/jct"
JAVA_HOME="h:/java/jdk1.4.2/win32"
TEST_BASE_PATH="h:/store/users/vsh/regtest/cte"
TESTWITH=$JAVA_HOME
TESTJAVA=$JAVA_HOME
JTOPTS="-client"
TESTVMOPTS="-client"
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,windir=$windir,PATH=${SHELL%/*},CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-21" -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/4346409/Filvaeljartest.java"
--- script end ---
Test output (jtr part):
=======================
----------System.err:(0/0)----------
result: Passed. Compilation successful
#section:shell
----------messages:(3/121)----------
command: shell Test4346409.sh
reason: User specified action: run shell Test4346409.sh
elapsed time (seconds): 0.984
----------System.out:(7/189)----------
created: META-INF/
extracted: META-INF/MANIFEST.MF
created: test_dir/
extracted: test_dir/test_1
extracted: test_dir/test_2
extracted: test_dir/test_3
extracted: test_dir/test_4
----------System.err:(3/145)----------
java full version "1.4.2-beta-b13"
java.lang.NoClassDefFoundError: org/netbeans/jemmy/operators/ContainerOperator
Exception in thread "main"
result: Failed. Execution failed: exit code 1
test result: Failed. Execution failed: exit code 1
Specific machine info:
======================
Hostname: linux-21
OS: Windows XP Home
======================================================================