Adding a test project to a BAR file

You can add a test project to an existing BAR file by using the BAR file editor.

Before you begin

Read the following topics:

About this task

To add a test project to an existing BAR file, complete the following steps:

Procedure

  1. Open the BAR file in the BAR file editor, and then select Applications, shared libraries, services, REST APIs, and Test Projects.
  2. Select Test Projects from the list of deployable resources to include in the BAR file.
    Figure 1. Add test project to BAR file
    This diagram shows the Deployable Resources dialog, in which you can specify that the test project is to be added to the BAR file.
  3. 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
    This diagram shows the Manage tab, showing the test project and application under test.
  4. 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.