AbilAjay
2 years agoOccasional Contributor
Runner.stop method didn't stop current routine
I have two routine test1() and test2(), i called test1() inside the test2(), like this
def test1():
Log.error("kaboom")
def test2():
test1():
Log.message("hello")
Play back on error property set to "stop current item"
If I run the test2 it's only stop test1 routine alone it's won't stop test2 it will print hello on the console how i stop the execution of routine test2 completely when there is error occurred? Please someone help me, i try onlog error event aslo it's won't work it's only stop one routine alone
def test1():
Log.error("kaboom")
def test2():
test1():
Log.message("hello")
Play back on error property set to "stop current item"
If I run the test2 it's only stop test1 routine alone it's won't stop test2 it will print hello on the console how i stop the execution of routine test2 completely when there is error occurred? Please someone help me, i try onlog error event aslo it's won't work it's only stop one routine alone
Read and understand Errors and Exceptions and Handling Exceptions in Scripts.
You're handling the exception error using the try...except statement. There's nothing in your except statement to indicate that the automation should stop.