Classes

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: Accessing Custom DLL Methods Through DOTNetFactory

by Anshoo Arora ON February 20, 2010 · Posted In All, DOTNetFactory, QTP · 107 comments

This article shows a quick and easy way to use DLLs in QTP and access their methods with the help of DOTNetFactory. It also shows a working example of a DLL created in Visual Basic .NET and its methods accessed in QTP.

QTP: Working with Large Object Hierarchies (Siebel Objects)

by Anshoo Arora ON September 17, 2009 · Posted In All, QTP, QTP/Siebel · 22 comments

This article demonstrates how working with large object hierarchies (like Siebel’s) can be greatly simplified in QTP by using one of the 4 techniques mentioned here.

QTP: Working with Multiple Browser Applications – A Concept

by Anshoo Arora ON August 24, 2009 · Posted In All, QTP, QTP/Web · 0 comments

This article demonstrates an elegant approach to working with multiple Browsers through the use of Classes and Dictionary Object. Examples included.