Copy projects


+

Search Tips   |   Advanced Search


Overview

You can export a test project from a workspace and import it into another workspace.

The following instructions are included to show an alternate way to copy a test project.

To copy projects, schedules, tests, or results, see Copy test assets with dependencies.


Procedure

  1. Export the test project to an archive file.

    Datapools can be located either in the same project as the tests that use them or in different projects. Export all datapools the exported tests require.

  2. If the target workspace is on a different computer, transfer the archive file to a location that is accessible to that computer.

  3. Start Rational Performance Tester, and select the target workspace.

  4. Ensure that both project names are the same. Otherwise, you might not be able to locate imported test assets.

  5. Import the source project from the archive file into the target workspace.

      File | Import | General | Existing Projects into Workspace | Next | Select archive file | Browse | archive_file | Finish

  6. Optional: If the imported project contains custom code or tests that have been run, you might need to change the Java build path.

    The following examples are cases that might require a change to the Java build path:

    • The Java build path was manually changed in the project from which it was exported.

      In this case, the same changes need to be made in the imported project. While importing, you are asked whether to overwrite the class path file, which stores the Java build path for project. Answering Yes reduces the likelihood that the build path will need to be changed.

    • The project was imported onto a different computer with a different Java installation configuration.

      In this case, missing libraries must be removed from the build path.

    • The project was imported into a workspace on a different disk drive.

      When you are asked whether to replace the class path file, answering No reduces the likelihood that the build path will need to be changed.

    For instructions on changing the build path, see the Java Build Path page.


What to do next

If you encounter errors after importing a test project or when using an existing workspace with a new version of the product, you might need to delete .java files from the src folder in the workspace:

  1. Click Window > Open Perspective > Resource to open the Resource perspective.

  2. In the Navigator window, expand the test project folder, and locate the src folder.

  3. Delete all .java files in the src folder, except for those containing custom code.

  4. Return to test perspective: Click Window > Open Perspective, and select Performance Test (or Service Test, if you are using Rational Service Tester).