Sunday, May 1, 2016

Solution for Microsoft Script debugger window invoke at end of Test execution

UFT/QTP invokes Microsoft script debugger window and pass/holds at the lines in Test_Terminate method if we use Class constructor and destructor.

Execution from UFT/QTP - Test get stuck at lines in Test termination method in class.
Execution from ALM - Test get pass for a while (~3 mins) and disappears for next test execution kick off.

This is really annoying and impacts test performance too.

Solution: Use "On Error Resume Next" as first line in "Test_Terminate" method. It will never bother you by invoking Microsoft script debugger window.

"A good threat is worth a thousand tests" - Boris Beizer

No comments: