See the README-javatest.html file, the JavaTestTM User's Guide, and the ReleaseNotes-javatest.html file for additional information.
JAXR TCK tests
The JAXR TCK tests run on the following platforms:
Install the Java Web Services Developers Pack 1.2 software.
Download and install the Java Web Services Developers Pack 1.2 from the Project Web site (http://java.sun.com/webservices/downloads/webservicespack.html). Refer to the documentation included with the Java Web Services Developers Pack for specific installation instructions.
Install the JAXR TCK software.
Download the JAXR TCK software from the Java Partner Engineering Web site and install:
Change to the directory where you want to install the JAXR TCK software:
cd <install_directory>
Use the unzip command to extract the bundle:
unzip jaxr-1_0_x-fr-tck.zip
This will create the jaxrtck directory. The <install_directory>/jaxrtck directory will be TS_HOME.
setenv LOCAL_CLASSES=${JWSDP_HOME}/jaxr/lib/jaxr-impl.jar: ${JWSDP_HOME}/jaxr/lib/jaxr-api.jar: ${JWSDP_HOME}/jaxr/lib/fscontext.jar: ${JWSDP_HOME}/jaxr/lib/castor-0.9.3.9-xml.jar: ${JWSDP_HOME}/jaxp/lib/jaxp-api.jar: ${JWSDP_HOME}/jaxp/lib/endorsed/xercesImpl.jar: ${JWSDP_HOME}/jaxp/lib/endorsed/xsltc.jar: ${JWSDP_HOME}/jaxp/lib/endorsed/xalan.jar: ${JWSDP_HOME}/jaxp/lib/endorsed/sax.jar: ${JWSDP_HOME}/jaxp/lib/endorsed/dom.jar: ${JWSDP_HOME}/saaj/lib/saaj-impl.jar: ${JWSDP_HOME}/saaj/lib/saaj-api.jar: ${JWSDP_HOME}/jwsdp-shared/lib/mail.jar: ${JWSDP_HOME}/jwsdp-shared/lib/providerutil.jar: ${JWSDP_HOME}/jwsdp-shared/lib/jaas.jar: ${JWSDP_HOME}/jwsdp-shared/lib/activation.jar: ${JWSDP_HOME}/jwsdp-shared/lib/commons-logging.jar:${TS_HOME}/lib/javatest.jar:${TS_HOME}/lib/tsharness.jar: ${TS_HOME}/lib/jaxrtck.jarOr, if are running the Java Web Services Developers Pack on Windows 2000/XP, you set the following classpath:
set LOCAL_CLASSES=%JWSDP_HOME%\jaxr\lib\jaxr-impl.jar; %JWSDP_HOME%\jaxr\lib\jaxr-api.jar; %JWSDP_HOME%\jaxr\lib\fscontext.jar; %JWSDP_HOME%\jaxr\lib\castor-0.9.3.9-xml.jar; %JWSDP_HOME%\jaxp\lib\jaxp-api.jar; %JWSDP_HOME%\jaxp\lib\endorsed\xercesImpl.jar; %JWSDP_HOME%\jaxp\lib\endorsed\xsltc.jar; %JWSDP_HOME%\jaxp\lib\endorsed\xalan.jar; %JWSDP_HOME%\jaxp\lib\endorsed\sax.jar; %JWSDP_HOME%\jaxp\lib\endorsed\dom.jar; %JWSDP_HOME%\saaj\lib\saaj-impl.jar; %JWSDP_HOME%\saaj\lib\saaj-api.jar; %JWSDP_HOME%\jwsdp-shared\lib\mail.jar; %JWSDP_HOME%\jwsdp-shared\lib\providerutil.jar; %JWSDP_HOME%\jwsdp-shared\lib\jaas.jar; %JWSDP_HOME%\jwsdp-shared\lib\activation.jar; %JWSDP_HOME%\jwsdp-shared\lib\commons-logging.jar; %TS_HOME%\lib\javatest.jar;%TS_HOME%\lib\tsharness.jar; %TS_HOME%\lib\jaxrtck.jar;
The setting for the wspack RegistryServer is:
registryURL=http://localhost:8080/RegistryServer.
Set the queryManagerURL property to the query url for you Registry.
The setting for the wspack RegistryServer is:
queryManagerURL=http://localhost:8080/RegistryServer.
Set the username and password properties for 2 accounts in your registry.
The default settings for RegistryServer:
jaxrUser=testuser
jaxrPassword=testuser
jaxrUser2=jaxr-sqe
jaxrPassword2=jaxrsqe
Complete the following steps to start the Java Web server:
Execute the ./startup.sh script or the startup.bat batch file.
Wait for the web server to come up. Look at the file <JWSDP_HOME>/logs/launcher.server.log and wait until the messages stop printing to the file. You will see the following message when the web server has completed its startup:
Starting service Internal Services Java Web Services Developer Pack/1.2-fcs Starting service Java Web Services Developer Pack Java Web Services Developer Pack/1.2-fcs
The Welcome screen displays.
Click on the Create Work Directory button, enter the name of the directory to which the JavaTest test harness will write temporary files (/tmp/JTwork, for example), and press the New Work Dir button when you are done.
Otherwise select File->New Work Dir or File->Open Work Dir to do the same as above.
Pull down Configuration and select Configuration Editor. The Welcome screen displays. Press the Next Question button (right arrow). You are prompted to select which tests to run. Accept the default setting (jaxr) and press the Next Question button.
NOTE: Do not run the Parameter Editor before you run the Configuration Editor or you will lose all the default settings.
You are asked if you want to specify an exclude list. Accept the default (yes) and press the Next Question button.
Verify the default location of the exclude list and press the Next Question button.
You are prompted for the location of the environment files. Accept the default file location and press the Next Question button.
You are prompted to specify a test environment. Select either ts_unix or ts_win32 and press the Next Question button.
You are prompted to specify a directory into which reports will be written. Accept the default (/tmp/JTreport) or enter a new directory location and press the Next Question button.
You are prompted to create the directory. Accept the default answer (yes) and press the Next Question button.
The Congratulations screen displays. Press the Finished button (check mark).
Select Run then Start. The tests in the {TS_HOME}/src/com/sun/ts/tests/jaxr directory will be executed.
For example, to run just the AttachmentPart API test, double click on jaxr, then double click on api, then double click on javax_xml_soap , then single click on AttachmentPart, then click Add File.
Click the Finished button when you are done.
Click Run and select Start to run the test. This will now only run the AttachmentPart api test.
ANT_HOME to the directory where the Ant software is installed and include ANT_HOME/bin in PATH
C Shell setenv ANT_HOME ${TS_HOME}/tools/ant setenv PATH "${ANT_HOME}/bin:${PATH} Bourne Shell ANT_HOME=${TS_HOME}/tools/ant PATH=${ANT_HOME}/bin:${PATH} export ANT_HOME PATHPATH add TS_HOME/bin to your PATH in your command shell
C Shell setenv PATH ${TS_HOME}/bin:${PATH} Bourne Shell PATH=${TS_HOME}/bin:${PATH} export PATHJAVA_HOME to the directory where the J2SE SDK 1.4.1 software has been installed Change to directory TS_HOME/install/jaxr and run ant to create and set up your TS_HOME/bin directory if it has not yet been setup.
Change to directory TS_HOME/bin and edit the build.properties file to set the required properties needed for using Ant build environment.
webserver.host to the host the Web server is running on
webserver.port to the port the Web server is running on
j2ee.home.ri to the directory where the J2EE SDK 1.3.1 is installed for reference to the packager tool used by the build infrastructure
local.classes required classes needed for building/running the TCK
cd <TS_HOME>/src/com/sun/ts/tests/jaxr/api/javax_xml_soap/AttachmentPart tsant clean buildThis will clean and build the tests in the AttachmentPart test directory.
To list the classes directory for this test that was built, type the following:
tsant lc or tsant llc
tsant ld or tsant lld
cd <TS_HOME>/src/com/sun/ts/tests/jaxr/api tsant clean buildThis will clean and build all the test directories under the api directory.
cd <TS_HOME>/src/com/sun/ts/tests/jaxr/api/javax_xml_soap/AttachmentPart tsant deployThis will deploy the WAR file built for the AttachmentPart test directory to the webapps directory.
To deploy a subset of test directories, type the following:
cd <TS_HOME>/src/com/sun/ts/tests/jaxr/api tsant deployThis will deploy all the test WAR files for the api directory.
cd <TS_HOME>/src/com/sun/ts/tests/jaxr/api/javax_xml_soap/AttachmentPart tsant runclientThis will run all tests in the AttachmentPart test directory.
To run a single test within a test directory, type the following:
cd <TS_HOME>/src/com/sun/ts/tests/jaxr/api/javax_xml_soap/AttachmentPart tsant runclient -Dtest=getPropertyNamesTest1This will run only the getPropertyNamesTest1 in the AttachmentPart test directory. You select the test name to run by looking at the testName tags in the URLClient.java file.
To run a subset of test directories type the following:
cd <TS_HOME>/src/com/sun/ts/tests/jaxr/api tsant runclientThis will run all the test directories under the api directory.
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.