Is there any way to create recovery scenario for test case macro?


#1

Hi,

I have bunch of test cases which are running one after other in test suite. I need to click on logout irrespective of the fact that whether test case pass or fail. because if application does not get logged out due to test case failure then it automatically fails all remaining test cases due to login issue.

Is there any way in Kantu to create the recovery scenario so that atleast logout will be get performed even any assertion gets failed during test case execution ?


#2

See OnError | #goto | logout-label

It makes the macro jump to “logout-label” if an error happens. You find an example in the DemoIfElse macro.