1 Introduction
Scheduling allows you to plan the execution of test cases and test suites at defined dates and times. Scheduling tests can be useful for the following:
- Running tests during the night
- Investigate when the software runs slower
- Constant reassurance that some feature works
This how-to will teach you how to do the following
- Schedule test cases
- Schedule test suites
2 Prerequisites
Before starting this how-to, make sure you have completed the following prerequisites:
- Complete How to Get Started
3 Scheduling Test Cases
The following steps explain how to schedule test cases:
- Open your project in ATS and go to the Schedules tab in Test Run.
Click Schedule test case to schedule a test case:
Clicking Schedule test case opens the Select Test Case dialog box:
Click the test case you want to schedule. To search for the test case, you can use the Search button.
Click Select. Selecting a test case opens the New Schedule dialog box:
Set the desired Schedule Test Settings:
- Active - Activate/Deactivate the event
- After - Set time when event is first executed
- Repeat – Repeat/Not repeat the event
- Every - Set interval to repeat the event
Set the desired General Settings:
- Environment - Set application on which to run the test
- Selenium Hub - Set Selenium hub on which to execute the test
- Browser - Set browser in which to run the test
Set the desired Platform Settings:
- Platform - Set platform on which to run the test
- Resolution - Set resolution with which the test is run
Note: Platform Settings are not visible for all Selenium hubs.
Click Save:
Clicking Save adds the test case to the list of scheduled items. Click the Edit icon to change the settings (1). Click the Delete icon to delete the scheduled test case(2):
4 Scheduling Test Suites
The following steps explain how to schedule test suites:
- Open your project in ATS and go to the Schedules tab in Test Run.
Click Schedule test suite to schedule a test suite:
Clicking Schedule test suite opens the Select Test Suite dialog box:
Click the test suite you want to schedule. To search for the test suite, you can use the Search button.
Click Select. Selecting a test suite opens the New Schedule dialog box:
Set the desired Schedule Test Settings:
- Active - Activate/Deactivate the event
- After - Set time when event is first executed
- Repeat – Repeat/Not repeat the event
- Every - Set interval to repeat the event
Set the desired General Settings:
- Environment - Set application on which to run the test
- Selenium Hub - Set Selenium hub on which to execute the test
- Browser - Set browser in which to run the test
Set the desired Platform Settings:
- Platform - Set platform on which to run the test
- Resolution - Set resolution with which the test is run
Note: Platform Settings are not visible for all Selenium hubs.
Click Save:
Clicking Save adds the test suite to the list of scheduled items. Click the Edit icon to change the settings (1). Click the Delete icon to delete the scheduled test case(2):
In case repeat is set to Yes, ATS will run the test until you mark it as inactive or remove the repeat settings. An active test is marked green and an inactive test is marked grey. An example can can be seen in the image above.
Now you can schedule your own test cases and test suites. You can add as many scheduled tests as you want. However, as executing tests takes time, there is a limit to the number of tests you can schedule.
5 Next Up
You now learned how to schedule test cases and test suites. The next how-to is How to Mask Your Password. You find an overview of all the how-tos and the structure on the ATS 2 How-to’s page. We advise you to follow the predefined structure.