Tag Archive: Intermediate

Jan 20 2014

Implementing a Generic Verification Function

The following function yields tremendous code savings, as it can evaluate any comparison between a pair of values (e.g., observed vs. expected) in a generic fashion. It accepts three (3) arguments: 1. sOperator – The logical binary operator, such as ‘=’ (equals), ‘=>’ (greater than or equal to), etc. 2. sObserved – A variant value. …

Continue reading »

Aug 27 2012

Visustin v6 Flow Chart Generator

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. …

Continue reading »

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


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 …

Continue reading »

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, …

Continue reading »

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 …

Continue reading »

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 …

Continue reading »

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, …

Continue reading »

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 …

Continue reading »

Older posts «

Fetch more items