javaee.level= web
|
Setup and Configuration for Testing with the Java EE 8 Web Profile |
| Previous | Next | Contents |
This chapter describes how to configure the Java EE 8 CTS test suite to work with your Java EE 8 Web Profile test environment. It is recommended that you first set up the testing environment using the Java EE 8 Web Profile RI and then with your Java EE 8 Web Profile server.
The instructions in this section and in Configuring Your Application Server as the VI step you through the configuration process for the Solaris, Microsoft Windows, and Linux platforms.
The Java EE 8 CTS is the Technology Compatibility Kit (TCK) for the Java Platform, Enterprise Edition as well as the Java EE 8 Web Profile. Implementations of the full Java Platform, Enterprise Edition must pass all of the tests as defined by Java EE 8 CTS Rules in Chapter 2, "Procedure for Java Platform, Enterprise Edition 8 Certification".
Implementations of the Java EE 8 Web Profile must run the tests that verify requirements defined by the Java EE 8 Web Profile Specification. These tests are defined by the Rules in Chapter 3, "Procedure for Java Platform, Enterprise Edition 8 Web Profile Certification". These requirements are a subset of the tests contained in the Java EE 8 CTS test suite. The test suite provides a mechanism whereby only those tests for the Java EE 8 Web Profile will be run. The following steps explain how to use this mechanism.
Set the javaee.level property to web in the
<TS_HOME>/bin/ts.jte file.
javaee.level= web
This setting will only allow WAR files (that is, no EAR files) to be
passed to the Deployment Porting Package. This is the minimal set of
signature requirements that vendors must support for Web Profile.
Specifying a javaee.level of "web" with nothing else implies there are
NO additional technologies existing within the vendors implementation.
Again, "web" only covers REQUIRED technologies for the Java EE 8 Web
Profile.
2. Set the javaee_web_profile keyword in one of the following ways:
* In batch mode, change to a test directory and execute the following
command:
ant -Dkeywords=javaee_web_profile runclient
Only tests that are required by the Java EE 8 Web Profile will be run.
|
Note
|
If you start a test run in a test directory that contains no Java EE 8 Web Profile tests, the test run will be aborted and the test harness will report that no tests were found. |
In the JavaTest GUI, open the test suite and perform the following steps:
Select View, then select Filters, then select CurrentConfiguration.
Select Configure, then select ChangeConfiguration, then select Keywords.
In the Keywords dialog, select the Select Tests that Match check
box, specify the javaee_web_profile keyword in the field, then click
Done.
Only those tests that are valid in the Java EE 8 Web Profile will be
enabled in the test tree.
| Previous | Next | Contents |
Copyright © 2018, Oracle and/or its affiliates. All rights reserved.