Running a test
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, create one as explained in Creating a new source folder.
Before a test can be run, it must be deployed. If no deployment exists, create one as explained in Creating a deployment. When you run your test, you choose an existing deployment.
To run a test, do the following.
- From the menu bar, click Run > Run. The Run dialog box opens with the Test tab selected.
- In the Configurations pane on the left, click Hyades URL Test.
- 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, click a listed configuration that you want to inspect or modify.
- 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.
- 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.
- Click Apply to save the selections on this tab.
- Click the Execution Results tab to inspect or change the test results preferences.
- 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.
- In the Location box listing Java projects in the workspace, click the one in which to store the test results.
- Click Apply to save the selections on this tab.
- Click the Users tab to set the number of users to emulate in the run.
- In the Users field, type the number of users to emulate during the run.
- Click Apply to save the selections on this tab.
- Click the Common tab to inspect or modify common Eclipse run preferences.
- Click Run.
Parent topic
Testing browser-based applications - quick start
Previous topic: Generating an executable test
Next topic: Analyzing test results