Hi, I am automating a desktop app by using JavaScript. I want to take the screenshot and save it on the computer whenever the script encounters an error, warning or problem. Currently, testcomple...
Thank you for your answer. Yes, I tried to use it. After step 3, the procedure to implement the handler to the script is really not clear.
1) Add an Event Control to Your Project
2) Add Needed Events to the Event Control
3) Create an Event Handler
Should "function EventControl1_OnLogError" be used as the main function to call other test case routines? Like a big try block?
function EventControl1_OnLogError(Sender, LogParams)
{
testCase1();
testCase2();
.
.
.
testCase10();
}
I cannot find any example or demonstration of how to implement an event handler to a script.
Actually, that is a general problem which I really don't like with test complete desktop test module, lack of examples. I do not understand why there is no repository showing how to use a specific function. Please correct me if I am wrong.