-
Enhancement
-
Resolution: Won't Fix
-
P3
-
None
-
1.4.2
-
x86
-
linux
Name: asR10013 Date: 02/04/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.4.2-b14
Testbase : RegTest-CTE-manual
Falling test[s]:
CTE_REGTEST/Generic/4700263/Test4700263.java
CTE_REGTEST/Generic/4713295/Test4713295.java
CTE_REGTEST/Generic/4738457/Test4738457.java
CTE_REGTEST/Generic/4692180/Test4692180.java
CTE_REGTEST/Generic/4394694/Test4394694.java
CTE_REGTEST/Generic/4411836/Test4411836.java
CTE_REGTEST/Generic/4426236/Test4426236.java
CTE_REGTEST/Generic/4709207/Test4709207.java
CTE_REGTEST/Generic/4358791/Test4358791.java
CTE_REGTEST/Generic/4479001/Test4479001.java
CTE_REGTEST/Generic/4628657/Test4628657.java
CTE_REGTEST/Generic/4735750/Test4735750.java
CTE_REGTEST/Generic/4476318/Test4476318.java
CTE_REGTEST/Generic/4709788/Test4709788.java
CTE_REGTEST/Generic/4735737/Test4735737.java
Some RegTest-CTE tests refer to http resources which are unavailable outside Sun.
Many of them allow using file:// alternative. Others do not. Some of such tests
indeed require http servers. Some provide alternative resources that can be used instead of
unavailable servers but do not mention them in descriptions.
There are basically the following situations:
1) A test does not provide alternative resources.
2) A test supplies alternative resources that requires an HTTP server but do not use them.
3) A test supplies alternative resources that does not require HTTP server but do not use them.
Such tests can be modified to behave as many other CTE tests that suggests alternative resources
using file:// url scheme
This RFE is filed to designate the reason of the failures of such tests.
This RFE suggests the following:
- provide configuration information and alternative resources for tests of type 1
- provide configuration information about tests of type 2 and/or confirm that the resources supplied with the tests
can be used instead of unavailable http servers as described below.
- modify tests of type 3 if possible or confirm that they can be run using resources provided with the tests as described below.
1) The following manual RegTest-CTE tests fail because they use pages located on servers
unavailable outside Sun and do not provide alternative resources:
CTE_REGTEST/Generic/4692180/Test4629180.sh
- uses http://jpseuwt-ap/testcases/140/4692180
CTE_REGTEST/Generic/4700263/Test4700263.sh
- uses http://jpseuwt-ap/testcases/140/4700263
CTE_REGTEST/Generic/4713295/Test4713295.java
- uses http://jpseuwt-ap.sfbay/testcases/140/4713295/Test4713295.html
CTE_REGTEST/Generic/4738457/Test4738457.java
- uses http://jpseuwt-ap/testcases/141/4738457
CTE_REGTEST/Generic/4394694/Test4394694.java
- uses http://jpsesvr:81
CTE_REGTEST/Generic/4411836/Test4411836.java
- uses http://jpsesvr:81
2) These manual RegTest-CTE tests fail because they use pages located on servers
unavailable outside Sun, provide alternative resources that require HTTP server but do not use them:
CTE_REGTEST/Generic/4426236/Test4426236.java
uses http://jpseuwt-ap/testcases/4426236/test_130.html
CTE_REGTEST/Generic/4709207/Test4709207.java
uses http://jpseuwt-ap.sfbay/testcases/140/4709207/
3) These manual RegTest-CTE tests fail because they use pages located on servers
unavailable outside Sun but do not provide alternative resources that do not require HTTP server.
HTML pages with applets can be loaded using file:/// link
CTE_REGTEST/Generic/4479001/Test4479001.java
uses http://jpseuwt-ap/testcases/131/4479001/Test4479001.html
CTE_REGTEST/Generic/4628657/Test4628657.java
uses http://jpseuwt-ap/testcases/131/4628657/Test.html
CTE_REGTEST/Generic/4735750/Test4735750.java
uses http://jpseuwt-ap/testcases/140/4735750
CTE_REGTEST/Generic/4358791/Test4358791.java
uses http://jpseuwt-ap/testcases/131/4358791/test_ok.html
CTE_REGTEST/Generic/4476318/Test4476318.java
CTE_REGTEST/Generic/4709788/Test4709788.java
uses http://jpseuwt-ap/testcases/131/4709788/Test4709788.html
CTE_REGTEST/Generic/4735737/Test4735737.java
uses http://jpseuwt-ap/testcases/140/4735737/
After the following operations all these tests (of types 2,3) passed or failed as described below:
PASSED:
CTE_REGTEST/Generic/4709207/Test4709207.java:
Clock2 was compiled manually
AttackApplet.html was used with the Clock2 codebase using http server and AppletAttack codebase using file:// url.
The test passed
CTE_REGTEST/Generic/4358791/Test4358791.java:
test_ok.html was used.
The test passed, no security exception appeared in Java Console
Remarks: test_ok.html should be corrected, spaces between '=' and tag attribute values should be removed.
CTE_REGTEST/Generic/4426236/Test4426236.java:
test_130.html was used
The test passed, no NullPointerException in Java Console:
url = test/test1.html
code base is http://linux-15/results_full/mantis/b14/regtest/linux/suse8.0_gnome
IO exception, us is not Null
Not Found
okay,
CTE_REGTEST/Generic/4479001/Test4479001.java
Test4479001.html was used
The test passed, 'Value is : ' in Java Console Window
CTE_REGTEST/Generic/4628657/Test4628657.java
SignedApplet.tar.Z was unpacked into .../workDir/cte/classes/CTE_REGTEST/Generic/4628657 and SignedApplet/Test.html was used.
The test passed, the counter was incremented and properties were dumped in Java Console.
Remarks: the "Yes" button was used in the security dialog instead of "Grant this session" mentioned in the description.
CTE_REGTEST/Generic/4735750/Test4735750.java:
testcases.jar was unpacked to
.../workDir/cte/classes/CTE_REGTEST/Generic/4735750 and
all codebase attribute in test?.jnlp, test?_out.jnlp are corrected to this directory
FAILED:
CTE_REGTEST/Generic/4476318/Test4476318.java
testPlugin.html was used.
CTE_REGTEST/Generic/4709788/Test4709788.java
Test4709788.html was used.
CTE_REGTEST/Generic/4735737/Test4735737.java
test4.html, test5.html was used
Test source location:
=====================
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4700263/Test4700263.java
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4713295/Test4713295.java
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4738457/Test4738457.java
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4692180/Test4692180.java
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4394694/Test4394694.java
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4411836/Test4411836.java
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4426236/Test4426236.java
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4709207/Test4709207.java
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4358791/Test4358791.java
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4479001/Test4479001.java
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4628657/Test4628657.java
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4735750/Test4735750.java
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4476318/Test4476318.java
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4709788/Test4709788.java
/net/jdk/export/jpse04/Regression/1.4.2/test/CTE_REGTEST/Generic/4735737/Test4735737.java
How to reproduce:
=================
Run the following script outside Sun (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.4.2/linux"
TEST_BASE_PATH="/net/linux-15/export/home/java/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,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="linux-19" -Dprogram=jtreg com.sun.javatest.regtest.Main -manual -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" -keywords manual "$TEST_BASE_PATH/CTE_REGTEST/Generic/4692180/Test4692180.java"
--- script end ---
Test output (jtr part):
=======================
JavaTest Message: Test threw exception: java.lang.RuntimeException: Failure Reported by Test Operator
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Failure Reported by Test Operator
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Failure Reported by Test Operator
test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Failure Reported by Test Operator
Specific machine info:
======================
Hostname: linux-19
OS: SuSe 8.0 (GNOME)
======================================================================