To add a test project to an existing BAR file, complete the following steps:
Procedure
Open the BAR file in the BAR file editor, and then select Applications, shared
libraries, services, REST APIs, and Test Projects.
Select Test Projects from the list of deployable resources to
include in the BAR file.
Figure 1. Add test project to BAR file
If you are creating a new BAR file that contains a test project, ensure that you also add
the application that is being tested, so that the test project and the application can be extracted
to the run directory of the integration server's work directory.
The
Manage tab shows the test project and the application under test:Figure 2. Manage tab
showing the test project and application to be tested
When the test project is run, the Java class containing the test case is compiled. The
.jar file that contains the built classes is added in the BAR file under the
test project. The resources that are used by the test cases are also added to the test
project.