Running a test

You can run a test on one or more deployments.

Before a test can be run, the test's Java source code must be generated and compiled as explained in Generating an executable test.

Before the test's Java code can be generated, a location for storing the code must exist. If no source folder named src exists in any existing Java project, you must create one as explained in Creating a new source folder.

Before a test can be run, it must be deployed. If no deployment exists, you must create one as explained in Creating a test deployment. When you run your test, you choose an existing deployment.

To run a test:
  1. From the menu bar, click Run > Run. The Run dialog box opens.
  2. In the Configurations pane on the left, click Hyades URL Test.

  3. Optionally, in the Perspectives tab, you can associate the three launch modes (Debug, Run, and Profile) with different workbench perspectives by clicking the appropriate arrow and selecting the perspective from the drop-down list.
  4. To create a new configuration, click the New button on the bottom left.

    A new test configuration, initially named New_Configuration, is created. Change the name if you like. Alternatively, expand Hyades URL Test and click a listed configuration that you want to inspect or modify. The Run dialog box opens in the Test tab.

  5. In the Select Test to run pane in the middle listing all projects in the workspace, navigate to the project containing the test to run and click it.
  6. In the Select a deployment pane on the right listing all defined deployments in the workspace, click the one to use for this run.

    To run the test using default values, or using the same values that you set during the previous test run, you can click Run now and stop reading.

  7. Click Apply to save the selections on this tab.
  8. Click the Execution Results tab to inspect or change the test results preferences.

  9. To overwrite the test results file that was used the last time this test was run, rather than creating a new results file, check the box beside Override existing Execution Results resource.
  10. In the Location box listing Java projects in the workspace, click the one in which to store the test results.
  11. Click Apply to save the selections on this tab.
  12. Click the Users tab to set the number of users to emulate in the run.

  13. In the Users field, type the number of users to emulate during the run.
  14. Click Apply to save the selections on this tab.
  15. Click the Common tab to inspect or modify common Eclipse run preferences.

  16. When you run a test configuration, Eclipse creates a file, with a .launch suffix, containing metadata. If you select Local, Eclipse stores this file in your workspace's metadata folder, which is not visible to other users. If you want other users to have access to the file, select Shared, click Browse, and navigate to a folder in your workspace where you want to store the file.
  17. To have the test configuration appear in the Run, Debug, or Profile favorites toolbar menus, check the appropriate item in the Display in favorites menu box.
  18. Select Launch in background to have Eclipse run the test configuration in the background so that you can perform other Eclipse tasks while the test runs.
  19. Click Apply to save the settings for the configuration.
  20. Click Run.

Parent topic: Performance Testing with TPTP

(C) Copyright IBM Corporation 2000, 2004. All Rights Reserved.