Showing results for 
Search instead for 
Did you mean: 

Unexpected behaviou handling

Occasional Contributor

Unexpected behaviou handling

Hello All,

Thank you for taking the time to read my thread.

I am new to Automation testing and TestComplete but am experienced with using similar tools, so apologise if my question is simple.


I am currently keyword scripting against desktop applications. I am wanted to make sure they are as robust as possible and handle unexpected behaviour. For example, Im scripting against MS Work currently and producing a script that checks the settings. If a setting isn't as expected, Id like it to recover, log it and then try the next action. I understand that I can use continue on error, but that wouldn't escape from the place I was to be able to try the next test.


My questions therefore is, how do I incorporate this into a script? I was thinking of developing another script under a Do While statement and calling all the scripts into it, then under an exception, call a recovering script to clean and tidy up.

Does anyone know any better ideas and recommend the best way for me?


Many Thanks



Community Manager

Re: Unexpected behaviou handling

Thank you for your questions @LuciRUoc !


@AlexKaras @Marsha_R @anupamchampati @BenoitB 

What do you think?🙂

Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video: