Tag Archive: Intermediate

Jan 08 2018

A Simple Function to Return the Result of a “Negative” Checkpoint

Negative tests check that the application or system under test (AUT/SUT) can handle gracefully invalid inputs, such as an invalid username at login, or an invalid ID number when creating a new customer. There is some controversy around the term “negative” for such tests, as pointed by Alon LInetzki here. To me, the term “Negative Testing” …

Continue reading »

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 24 2008

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 …

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 »

Older posts «

Fetch more items