Documentation >> Getting Started


Task Scheduling

The powerful task engine of AutoTest Studio can provide a variety of task running modes to suit different scenarios.

Select the test case that needs to be run, right-click, and select "Advanced Run" to enter the advanced running mode. In this mode, the user can choose more flexible task running methods.


The task engine also allows for various combinations of execution modes, for example, running failed test cases in a recurring mode.

Scheduled Start Tasks

If the "Start Time" is set to be greater than the current time, after clicking "Start", the task engine will wait for the time to expire before running the task.

As shown in the figure below, the task will run the test task when the time reaches "2022-09-10 12:00:00".

End the Task on Time

In addition to specifying the start time of the task running, the task engine can also specify the end time of the task running, and after the end time arrives, the task engine will wait for the completion of the current test case execution before terminating the task.

As shown in the figure below, the task engine will end the test task when the time reaches "2022-09-10 15:00:00"

Cycle Run

The task engine of AutoTest Studio can not only specify the end time of the task, but also provide the specified number of runs. As shown in the figure below, the task engine will run the test case for 100 rounds and terminate the task.

Running Mode

AutoTest Studio's task engine runs all test cases sequentially by default, but also provides a random way to run test cases.

Sequence:

Random

Debugging

When "Debug Mode" is set to "Yes", the task engine can run test cases in debug mode.

Run the Specified Test Case

AutoTest Studio can run the test case with the specified status. As shown in the figure below, the task engine will run the selected test case with the status of "Fail" and "None".

According to the above settings, the following set of test cases, testcase2.py and testcase4.py, will be run, and other test cases will not be run.

Retry after Failure

AutoTest Studio provides a global configuration parameter that allows a test case to be re-run after a failed run, and the ability to specify the number of times to repeat the run. The default is 0, that is, no repetition.

Test Case Timeout Settings

During the running of the test task, if there is an abnormal reason that causes the test case to be blocked, but the user does not want the entire task to be blocked due to the blocking of this test case, the task engine allows the user to set the test case timeout time to forcibly terminate the blocked test case. Continue Run other test cases.

The timeout time is set to 0 by default, that is, it does not take effect.

As shown in the figure below, set the timeout period of the test case to 300 seconds. When the test case runs for more than 300 seconds, the task engine will forcefully terminate the test case.

Note: The timeout will affect all test cases, even if no blocked test cases exceed the timeout, they will be terminated.