Forum Discussion

kkrush's avatar
kkrush
Occasional Contributor
4 years ago
Solved

When an error happens, how to call the logout scripts.

Hello, 

 

I would like to know when error happens during execution , I would like to call the "Logout & Close Browser" script immediately, how to call it.?

so in Test -1 , lets say if keyword action 2 fails for some reason, I would like to call the "logout script & Close Browser" immediately and then the control should move to Test -2., how can I do it.?

for example:

Test -1

--- Login

--- keyword action 1

--- keyword action 2

--- script action 3

--- Logout

--- close browser

 

Test - 2

--- Login

--- keyword action 5

--- keyword action 6

--- script action 1

--- script action 2

--- Logout.

--- close browser