3.6.4. Reusing (referencing) whole Projects in a Project
Prev | 3.6. Working with Projects | Next

### 3.6.4. Reusing (referencing) whole Projects in a Project

You can reuse (reference) Projects as libraries of Test Cases in other Projects.

To reuse Projects:

1. Make sure that the Project you want to reuse is in the database.

2. Select:

   Test-->Properties

   and select Used Projects from the tree on the left of the dialog that appears (Figure 3.6, “Reused Projects”).

   Figure 3.6. Reused Projects

3. A list of Projects you can reuse will be offered on the left-hand side of the dialog. You can only reuse Projects which support the same toolkit as your current Project (e.g. Swing, Concrete).

   | To be able to reuse a Project, you must have checked the reusable box in the Project properties for the Project (Section 3.6.3.1, “Editing general Project properties”).

4. From the list of reusable Projects, select a Project and its version to reuse in the current Project. Use the arrows to move it to the list of reused Projects.

5. Click ”OK”.

6. The Test Cases from the Project you chose to reuse will appear in the Test Case Browser, under a category with the same name as the reused Project. The Test Cases will be colored blue to distinguish them from other Test Cases in this Project.

   | You cannot edit these Test Cases here – but you can reuse them in your Test Cases for this Project and edit certain details (referenced parameters, component names) when they are reused in other Test Cases.

7. You can change the version of the reused Project via the Used Projects Properties dialog, by clicking on the ”change used version” button (Section 3.6.4.1, “Changing the version of a reused Project”).

#### 3.6.4.1. Changing the version of a reused Project

You can change the version of the reused Project you are using in your tests. This is useful to update to a new version of the unbound modules, for example.

1. In the Used Project properties, select the currently reused Project version from the list on the right.

2. Select the new version of this Project from the list on the left.

   | In order to be able to see and select the new version of the Project, it must be in your database!

3. Click the ”Switch version” button, marked with the opposing arrows.

4. The version of the reused Project will be switched.

   | If changes have taken place, it may be necessary to update your test. You should especially check for any actions that have become deprecated since the last version, and replace them with new actions.

#### 3.6.4.2. Searching for deprecated modules

You can search for deprecated modules. After adding or removing a used project(s) a dialog will be shown, where you can start search for deprecated modules. The result will be show in the search view.

You can also start the search for deprecated modules by selecting Search-->Search for deprecated modules.

Figure 3.7. Reused Projects