Dealing with the many differing locale specifics is a major challenge when testing Web or multi-language applications that will be used in multiple countries. It’s becoming increasingly important, with the release of technologies such as Windows 2000, to be able to support these scenarios. The new locale features in VBScript are a small step toward [...]
Posts tagged Intermediate
Internationalization
Attributes String from File
file attributes are like switches. If the switch for Hidden is on, the file is a hidden file. If the switch for Hidden is off, the file is not a hidden file. This analogy can be carried further by noting that light switches are typically under your control: you can choose to turn them on, [...]
Complex Dictionary Usage
In this article we are about to see the efficiency of a dictionary when checking or retrieving values from a web-table, For this purpose we have the following table in our AUT. This is the script that will parse the table and will upload the dictionary. After running the script above, the solarExch dictionary loaded [...]
Disabling a Network Adapter
Yanir Goren was kind enough to share the following QTip, which allows you to completely disable a network adapter: Dim i Dim adptCount , objDrvs ,sMACAddress i = 0 sMACAddress = “Enter MAC Address Here” ‘The adapter’s Mac Address ‘**** create instance of network adapters*** set objDrvs = GetObject(“winmgmts:”).InstancesOf(“Win32_NetworkAdapter”) adptCount = objDrvs.count ‘**** object contain [...]
Private Investigation: System.Collections.ArrayList
Lately many user sending me question about .NET objects, and how they could be used in QuickTest So, I decided to make a research, on one of the most efficient .NET collections: the System.Collections.ArrayList Probably you will see over the network, a lot of examples using this object. Usually they are very basic. The examples [...]
An Improved Dictionary Object
The Scripting.Dictionary object can be an extremely useful tool for storing and retrieving information. We’ve had a whole series of QTips covering it’s basic uses, as well as some advanced articles of using it as a reserved global dictionary, a parameter storage for generic functions (here and here), and more. However, with all its power, [...]
Changing Script Input Data “On the Fly”
This article explains how to input new data into the script during runtime, without hanging the script execution flow.
Get Pixel Color
In spite of all the advanced properties and methods of QTP, it’s the simple things which often seem impossible. A good example would be checking the color of a certain element in our application. Usually, we leave these tests to the manual QA team, stating that QTP isn’t meant for graphic verification (As its bitmap [...]
Read Excel Range into an Array
Usually, we only want to read some data from an Excel worksheet, and we’ll be more than happy to get that data in a simple 2-dimensional array. Later we can loop through the array, and access the data in a quick and easy fashion. Here’s a function which receives an Excel file, the workbook name [...]





Recent Comments