Once a test case is completed, it can be immediately executed. Although if you are planning to execute a specific test case together with other test cases in a test set, it is strongly recommended to run each test case separately first. However, before attempting to execute a test case, make sure that your SiteTest Agent is running on your computer and has an Active status in the Agents section of the Project Settings tab in SiteTest environment.
SiteTest is capable of recording and storing execution results for every run of every test case. However, if an executed test case has the “In Design” status, SiteTest keeps only the last execution results record, overwriting the previous one. If a test case has the “Completed” status, SiteTest creates a new, separate execution results record with every test case run.
To execute a single test case, proceed as follows:
- Go to the Define tab.
- In the Project Requirements pane locate and click on an appropriate test case.
- Select the Run Test sub-tab.
List of SiteTest Agents available to the user.
Status of the selected Agent that can be either “active” or “inactive”.
Agent Time Zone
Time zone where the selected Agent was created.
User Time Zone
Time zone of the user who is about to execute a test case.
List of web browser types supported by SiteTest.
List of test environments, on which the selected test case can be executed.
List of localizations (languages), which will be used for execution of the selected test case.
List of options for what screenshots SiteTest should automatically take during test case execution. SiteTest can take screenshots either of all steps or of the failed ones only.
- Select an appropriate SiteTest Agent in the Agent Name drop-down list. Note: If the selected Agent is running on your computer and has an Active status in the Agents section of the Project Settings tab, the Agent must have the “Ready” status displayed in the Agent Status column. Refer to the Working with SiteTest Agents section of this Help to see how to create and setup SiteTest Agents or consult your project manager to get an Agent assigned to you.
- In the Browser drop-down list select a web browser that will be used for test case execution. SiteTest currently supports MS Internet Explorer and Mozilla Firefox.
- Choose an appropriate environment and localization from the corresponding drop-down lists if applicable.
- In the Screen Shots drop-down list select whether SiteTest should automatically take screenshots of all steps during the execution or of the failed steps only.
- SiteTest automatically records a test case execution log. If the log is not needed, unmark the Keep Execution Log check box.
- To start the execution, click the Run button.
- If the test case has parameters with no values provided, you will be prompted to manually enter the values before each run of the test case. After entering the parameters values click the Submit button to start the test case execution. Note: The scheduled test case is added to the test case execution history table. The test case execution status displayed in the Run Status column of the table is now “Scheduled”. Shortly it will change to “Running”.
- To see the changes of the execution status, click the Refresh button as many times as needed. To stop test case execution at any time, click the red Stop link in the table. The test case execution status will change to “Stopped”.
When the test case execution is complete, the execution status changes to either “Passed” or “Failed”. If the execution status is "Passed", the test case can be added to a test set. If the status is "Failed," review the step-by-step execution results and all test case steps to locate and correct an issue and then re-run the test case.
- To see step-by-step execution results, click on the execution status of the test case. Note: The results page overlaps the Run Test sub-tab. Each step with a screenshot has an icon , by clicking on which you will be able to see the screenshot.
- Click the Close X link in the top right corner to get back to the Run Test sub-tab.