
Loading ...
At times, we might want to maintain a list of all objects which are created for an object. We will not discuss the situations where it would be required, but we will see how it’s done.
To store the list of object we can use the Dictionary objects. When we create classes object the first event [...]
Register or Login to read the full article...
Tags used -
Class, Classes, Class_Initialize, Class_Terminate, Collection, Dictionary, List, Maintain, Maintaining, Nothing, store, Storing

Loading ...
Checking Exist property for a Test object might return True even when the object is not present on the screen. Though this is not an issue with QTP but there could be 2 possible reasons behind this. This article walks through both the reasons in details
Root Cause #1 - Smart identification being used to identify [...]
Register or Login to read the full article...
Tags used -
Class, currentStyle, display, element, Exist, GetROProperty, hidden, invisible, none, object does not exist, Smart Identification, style, True, visibility, visible

Loading ...
Callback is a function which is executed on completion of a registered event. VBScript is not a event driven language, which means we are limited in terms of events for which callback can be implemented.
This article will demonstrate how to implement a callback on finish/terminate event. This finish/terminate event could be one of the following
The [...]
Register or Login to read the full article...
Tags used -
Call, Callback, Class, end, ends, Error, execute, function, script, VBScript

Loading ...
This article would go over some common mistakes people make while using Descriptive Programming (DP) in QTP.
Using strings with Pattern
Let’s assume we want to click a link “Logout (Tarun)” on my web page. Two possible methods that can be used are
Method 1
Browser("miccclass:=Browser").Page("micclass:=Page").Link("text:=Logout (Tarun)").Click
Method 2
Set oDesc = Description.Create
oDesc("text").Value = "Logout (Tarun)"
Browser("miccclass:=Browser").Page("micclass:=Page").Link(oDesc).Click
Now both the above methods will [...]
Register or Login to read the full article...
Tags used -
cannot, Class, Class Name, Common, Descriptive, Descriptive Programming, identify, micclass, Object