How to Re-Run Test in ALM on failure? – User friendly Tech help

Incase we start our search for any issue on ALM; it is really arduous to find something relevant and meaningful. Furthermore there is a scarcity of website addressing ALM issues or help. So we thought of sharing an article pertaining to “Re-Run of Test case in Test set in ALM in case of failure”.

n

Requirement:- 

n

Test Case (say TC2), fails when we ran from ALM for the first time, how we can control the execution flow , whether we want to rerun the test , test set or stop the execution?

n

Execution flow: – 

n

TC1->TC2->TC3 but TC2 is failing on first attempt and we want to re-run it to complete the execution flow.

n

Solution: – 

n

We can control the Rerun behaviour from “Automation Tab” in ALM.

n

Finding “Automation Tab”: – 

n

In ALM, Testing->Test Lab->Select the Test Set ->Automation Tab

n

Approach 1:- 

n

We can check the Rerun test option and set the “Maximum test reruns”.

n

Maximum test reruns: – Specifies the number of times an automated test should be rerun upon failure.

n

Cleanup test before rerun:-Runs a cleanup test before each test rerun.

n

n

n

n

n

n

n

n

Automation Tab

n

Approach2:- 

n

What can be done in ALM  on final failure of test.? We can select the option from “On final failure”. Like “Stop the test set”

n

Note: – We can also configure the email settings (Execution Summary) which ALM will send after the run, we can also change it as per our need like whether to send email on failure or pass. (Notification)

n

n

n

n

n

n

n

n

Email Notification in ALM

n

Also “Settings per test”, Opens the On Test Failure dialog box, enabling you to change the default failure rules for a test in the test set

n

n

n

n

n

n

n

n

Test Failure window
Was this article helpful?
YesNo

Similar Posts