If you are looking for a code visualization tool, then you may wish to try Visustin v6 Flow Chart Generator. Though certainly not cheap, it supports VB Script (among a wide array of other languages), brings along a remarkable array of features and, not less important, showcases an impressive list of firms actually using it. …
Tag Archive: Intermediate
Aug 16 2012
Show all Files in a Folder Recursively
Sometimes one needs to produce a list of files in a directory hierarchy. Here is one possible solution that uses a recursive subroutine.
Sep 02 2008
Internationalization
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 …
Sep 02 2008
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, …
Sep 01 2008
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 …
Jul 20 2008
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 …
Jun 19 2008
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, …
Jun 03 2008
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.
May 26 2008
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 …
May 03 2008
Pad Number String with Zeroes
Sometimes a numbered list is required, such as a list to populate a ListView, TreeView or one to create sequential files in a folder. One of the main problems is that such lists typically sort the items lexicographically, so that numbered items end-up in the wrong order, such as File_1, File_10, FIle_11, …, File_2, FIle_20, …


Recent Comments