Test Module

QTP GUI Objects, VBScript & Try Catch Finally

by Anshoo Arora ON August 30, 2010 · Posted In All, QTP, VBScript · 3 comments

VBScript’s error handling techniques have been quite limited to On Error statements, and even though they satisfy our needs to some extent, the lack of incorporating dynamic behavior with them has been a much bigger issue. In this article, I will implement a Try-Catch-Finally statement with QTP’s GUI objects along with an On Error statement. This will enable dynamic behavior and enable us to easily divide flow depending on different error conditions.

QTP: Using VBScript Classes as Test Modules I

by Anshoo Arora ON August 12, 2009 · Posted In All, QTP · 51 comments

Usage of modular classes helps in keeping all methods and properties for a module intact, and if done correctly, this can simply maintenance greatly.