Cancel test runs

If you trigger executions by accident, you can cancel them.

Note: you can only cancel executions that run on multiple Agent Agent machines are the machines on which you execute your tests. They host the Agent Service and the Runners. The Agent Service receives the Flow from the server and directs it to the required Runner. The Runner actually executes the test. machines. You can't cancel executions that run on a single Agent machine.

What happens when you cancel an execution

When you cancel an execution, Elastic Execution Grid finishes the Units The smallest unit of testing in your Flow. The concept is the equivalent of a TestCase in Tricentis Tosca. that are currently in progress and then stops. You can view the results of finished Units in the details view of the Flow.

You may need to clean up your environment after canceling an execution.

Cancel an execution

You can cancel an execution in the following ways:

Cancel the execution in the Executions tab

Cancel the execution in the details view

You can also cancel executions via REST API. For more information, see the Elastic Execution Grid API Swagger documentation.

Clean up after canceling an execution

In most cases, canceling an execution doesn't affect other executions. Ideally, you design your Flows to be self-contained: you start and finish a certain testing process within the same Flow.

However, if your Flows are connected and you cancel one of them, you may need to reset your testing environment. This prevents connected Flows from failing.

A clean-up typically involves the following steps: 

  • Close all windows and tabs that the are open on the Agent machine, for instance in browsers. If you leave them open and a connected Flow opens yet another instance, the execution will fail because Elastic Execution Grid doesn't know which window or tab to steer.

  • Sign out of all applications that the Agent accessed before you canceled the execution.

  • Go through all files and databases that the canceled execution modified. Revert changes, if necessary.

These clean-up steps are just examples. Your actual clean-up tasks depend on what your canceled Flow was designed to do.