Contents
Introduction
SupportThe tests provided in the JDBC API Test Suite are provided as is. The team at Sun working on the JDBC API does not have the resources to help with running these tests. Questions, comments and feedback regarding this test suite should be sent to the following alias:jdbc-tests@eng.sun.com We cannot respond to all queries but will attempt to provide an FAQ to answer the common questions. Questions regarding all other aspects of the JDBC Specification and API should continue to be sent to: jdbc@eng.sun.com Vendors wishing to buy support may do so by licensing the J2EE Platform. Please visit the following page for details: http://java.sun.com/nav/business/?frontpage-business
Conformance
Programs are available for vendors who wish to certify a JDBC driver as compliant with the J2EE platform. Please contact Sun's Java Software Division marketing department at the following email address for further details: jdbc-certification@eng.sun.com
Steps to Install and Run the TestsThe tests are run using GNU Make. GNU Make can be downloaded from the following location:ftp://ftp.gnu.org/pub/gnu/make The version make-3.79.1 builds on both Unix and Win32 platforms.
UnixDownload the 'jdbccts.zip' file.Unzip the 'jdbccts.zip' file: unzip jdbccts.zip The version of GNU Make used to test this distribution on Solaris 2.7 is shown below: % gnumake --version
Report bugs to <bug-make@gnu.org>.
Set the CTS_HOME environment variable to the directory where you have unzipped the 'jdbccts.zip' file: setenv CTS_HOME /local/jdbccts Change the current directory to the install directory: cd $CTS_HOME/install and run the setup script: ./setup Set the following environment variable to the appropriate values for your system: setenv J2EE_HOME /local/j2sdkee1.2.1
Set the following environment variable: setenv NO_JAVATEST Y Edit the file '$CTS_HOME/bin/cts.jte' and provide values for the following properties. The values shown below show the values that should be used when running against the J2EE platform Reference Implementation: webServerHost=localhost
Add the following JAR files to the J2EE classpath (in $J2EE_HOME/bin/userconfig.sh) separated by a colon: $CTS_HOME/lib/harness.jar
Also add the JAR file(s) of the JDBC driver that you are using to the J2EE classpath. The environment variable 'LOCAL_CLASSES' should also be set to include the JAR file(s) of the JDBC driver that you are using. Add the data sources 'jdbc/DB1' and 'jdbc/DB2' ($J2EE_HOME/config/default.properties). The following example shows how the data source names are defined for the Cloudscape database that is included in the J2EE Reference Implementation: jdbc.drivers=COM.cloudscape.core.RmiJdbcDriver
With the application server and database running, start the tests: cd $CTS_HOME/tests/jdbc/ee
WindowsRunning the tests on the windows platform requires that you use the MKS Unix Toolkit. The test suite has been sucessfully run using MKS Unix Toolket 6.1a and MKS Unix Toolkit 6.2.Note in the following instructions that the slashes '/' are forward slashes even though they follow a dos style drive letter specification, 'd:'. Download the 'jdbccts.zip' file. Unzip the 'jdbccts.zip' file: unzip jdbccts.zip The version of GNU Make used to test this distribution on Windows NT 4.0 is shown below: [C:/] gnumake -version
Report bugs to <bug-make@gnu.org>. All of the following configuration should be done in a MKS shell. Set the CTS_HOME environment variable to the directory where you have unzipped the 'jdbccts.zip' file: export CTS_HOME=d:/local/jdbccts Change the current directory to the install directory: cd $CTS_HOME/install and run the setup script. In order to do this you must rename the file 'setup' to 'setup.sh' as, by default, 'setup.bat' will be run if 'setup' and 'setup.bat' are both present: mv setup setup.sh
Set the following environment variable to the appropriate values for your system: export J2EE_HOME=d:/local/j2sdkee1.2.1
Set the following environment variable: export NO_JAVATEST=Y Edit the file '$CTS_HOME/bin/cts.jte' and provide values for the following properties. The values shown below show the values that should be used when running against the J2EE platform Reference Implementation: webServerHost=localhost
Add the following JAR files to the J2EE classpath (in $J2EE_HOME/bin/userconfig.sh) separated by a semi-colon: d:/j2sdkee1.2.1/lib/harness.jar
Also add the JAR file(s) of the JDBC driver that you are using to the J2EE classpath. The environment variable 'LOCAL_CLASSES' should also be set to include the JAR file(s) of the JDBC driver that you are using. Add the data sources 'jdbc/DB1' and 'jdbc/DB2' ($J2EE_HOME/config/default.properties). The following example shows how the data source names are defined for the Cloudscape database that is included in the J2EE Reference Implementation: jdbc.drivers=COM.cloudscape.core.RmiJdbcDriver
With the application server and database running, start the tests: cd $CTS_HOME/tests/jdbc/ee
Test Output
build.out - output from the makefile target
'build'
As each set of tests is run, the output is appended to: $CTS_HOME/tests/jdbc/ee/jdbc-tests.log When the all of the tests have been run, this file contains a complete
log of the test run.
Excluded Tests
Customization of SQL StatementsThe SQL statements that are executed by the tests may need to be customized for certain DBMSs. All the SQL executed by the tests is contained in the following file:$CTS_HOME/bin/ctssql.stmt This file can be edited to modify the SQL that the tests use.
| |||
|
| ||||||||||||