| ||
|
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080 [INFO] Catalina - -Server startup in 126511 ms |
There are two general ways to run the SAAJ TCK test suite using the JavaTest harness software:
Through the JavaTest GUI; if using this method, please continue on to Using the JavaTest Harness Configuration GUI.
In JavaTest batch mode, from the command line in your shell environment; if using this method, please proceed directly to Chapter 5.
You can use the JavaTest harness GUI to modify general test settings and to quickly get started with the default SAAJ TCK test environment. This section covers the following topics:
Note - It is only necessary to proceed with this section if you want to run the JavaTest harness in GUI mode. If you plan to run the JavaTest harness in command-line mode, skip the remainder of this chapter, and continue with Chapter 5.
In order for the JavaTest harness to execute the test suite, it requires information about how your computing environment is configured. The JavaTest harness requires two types of configuration information:
Test environment -- This is data used by the tests. For example, the path to the Java runtime, how to start the product being tested, network resources, and other information required by the tests in order to run. This information does not change frequently and usually stays constant from test run to test run.
Test parameters -- This is information used by the JavaTest harness to run the tests. Test parameters are values used by the JavaTest harness that determine which tests in the test suite are run, how the tests should be run, and where the test reports are stored. This information often changes from test run to test run.
The first time you run the JavaTest harness software, you are asked to specify the test suite and work directory that you want to use. (These parameters can be changed later from within the JavaTest harness GUI.)
Once the JavaTest harness GUI is displayed, whenever you choose Run Tests->Start to begin a test run, the JavaTest harness determines whether all of the required configuration information has been supplied:
If the test environment and parameters have been completely configured, the test run starts immediately.
If any required configuration information is missing, the configuration editor displays a series of questions asking you the necessary information. This is called the configuration interview . When you have entered the configuration data, you are asked if you wish to proceed with running the test.
Before you start the JavaTest harness software, you must have a valid test suite and Java SE 5 installed on your system.
The SAAJ TCK includes an Ant script that is used to execute the JavaTest harness from the <TS_HOME> directory. Using this Ant script to start the JavaTest harness is part of the procedure described in The Configuration Interview.
When you execute the JavaTest harness software for the first time, the JavaTest harness displays a Welcome dialog box that guides you through the initial startup configuration.
If it is able to open a test suite, the JavaTest harness displays a Welcome to JavaTest dialog box that guides you through the process of either opening an existing work directory or creating a new work directory as described in the JavaTest online help.
If the JavaTest harness is unable to open a test suite, it displays a Welcome to JavaTest dialog box that guides you through the process of opening both a test suite and a work directory as described in the JavaTest documentation.
After you specify a work directory, you can use the Test Manager to configure and run tests as described in The Configuration Interview.
The answers you give to some of the configuration interview questions are specific to your site. For example, the name of the host on which the JavaTest harness is running. Other configuration parameters can be set however you wish. For example, where you want test report files to be stored.
Note that you only need to complete all these steps the first time you start the JavaTest test harness. After you complete these steps, you can either run all of the tests by completing the steps in Starting JavaTest or run a subset of the tests by completing the steps in Running a Subset of the Tests.
Change to the <TS_HOME>/bin directory and start the JavaTest test harness:
cd <TS_HOME>/bin ./tsant gui
If the Welcome Screen does not appear do the following, otherwise skip to next step.
Click File->Open Quick Start Wizard.
The Welcome screen displays.
Click Start a new test run, and then click Next.
You are prompted to Create a new configuration or use a configuration template.
Select Create a new configuration, and then click Next.
You are prompted to select a test suite.
Accept the default suite (<TS_HOME>/src), and then click Next.
You are prompted to specify a work directory to use to store your test results.
Type a work directory name or use the Browse button to select a work directory, and then click Next.
You are prompted to start the configuration editor or start a test run. At this point, the SAAJ TCK is configured to run the default test suite.
Uncheck the Start the configuration editor option, and then click Finish.
Click Run Tests->Start.
The JavaTest harness starts running the tests.
To Reconfigure the JavaTest test harness, click Configuration->New Configuration or Configuration->Change Configuration.
Click Report->Create Report.
Specify the directory in which the JavaTest test harness will write the report, and then click OK.
A report is created, and you are asked whether you want to view it.
Click Yes to view the report.
![]() ![]() |