
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 ...
Strings are widely used in VBScript to pass information. This information might contain static and/or dynamic data.
Ex - a data base connection string “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Data.xls;Extended Properties=””Excel 8.0;HDR=Yes;IMEX=1″”;”
In the above string dynamic data is the excel file name “C:\Data.xls”. This article will show various ways to do the parameterization of this value.
The wrong way to do [...]
Register or Login to read the full article...
Tags used -
Data, Dictionary, Dynamic, Param, parameter, parameterization, Params, Replace, String, Value

Loading ...
Dictionary object allows storing key value pairs. A dictionary object can be used for easy lookup of values. Dictionary is a not a QTP specific functionality and is available in normal VBScript as well.
Creating the Dictionary
A dictionary object can be created using CreateObject for COM class “Scripting.Dictionary”. The code below shows how to create the [...]
Register or Login to read the full article...
Tags used -
Check, CreateObject, Dictionary, Exists, Extend, Key, Scripting, Value