Tag Archive: vbscript

Aug 24 2016

Bulk Rename Files with RegExp

Renaming a file is a common task for which Windows Explorer is enough. However, when it comes to to bulk renaming files things are not so simple. For instance, How-to-Geek describes how to bulk rename files with Windows Explorer and the Command Line, but admits that these are very limited and lacking flexibility. The same …

Continue reading »

Aug 22 2016

A Flexible Data-Driven If Function

In a previous post we delved into a method to override the Select Case decision-making structure to enable more efficient, manageable and readable coding which uses a flexible data-driven approach. This short article describes how to override the If-Else If-Else-End If structure in a similar fashion. The result is, again, code which turns out more …

Continue reading »

Aug 18 2016

A Flexible Data-Driven Select Case Function

It is possible to define conditions which, if true, trigger a call to another function or subroutine, or execute a block of code. Usually this is done by writing a decision-making structure in our code, such as If-Else If-Else for the simpler cases or a Select Case (switch in JavaScript) for the more complex ones. …

Continue reading »

Dec 14 2013

Visual BOOST: True Object Oriented Programming for VBScript

After years of research, we are proud to announce a breakthrough that overcomes the limitations VBScript imposes on automation developers. Though the language supports the use of classes, it has always been in a very limited fashion. Now, with Visual BOOST by Meir Bar-Tal, the so essential inheritance and polymorphism features have been finally added to the …

Continue reading »

Aug 07 2013

C++ Style Integer Manipulations in VBScript

If you wondered whether it is possible to replace the awkward statements inside Do…While/Until loops (or to meet other requirements) such as: i = i + 1 a = arr(i) With the more convenient: a = arr(i++) As in languages such as C/C++ – then the answer is YES!   The following class CNum implements the design to achieve a pretty …

Continue reading »

Jan 11 2010


For the entire time I’ve been working with HP QuickTest Pro and VBScript, I have had a yearning for real object support. Specifically, inheritance and polymorphism. I am a big fan of reusing every piece of code I can, and these two attributes contribute more to my productivity than any other concept in software development.
In addition, at one point when we were performing a refactoring of our automation framework

Dec 08 2008

Adding a Call-Chain Mechanism to QTP

Background and motivation A common frustrating experience is having your script pop-up an error dialog in some long-forgotten function, without one having the slightest clue in its regard. What usually follows is a series of trial-and-error breakpoint runs to determine which action the script was actually trying to perform when executing the function call that …

Continue reading »

Oct 15 2008

Class Inheritance in VBScript – Now at your Doorstep!

ChangeLog: 5/10 : I’ve uploaded a new file with the fixed parser. Added support for code blocks with sensitive names (Function PrivateFunciton, Sub SpecialGet etc.) 10/10 : I’ve uploaded a new file with constructor arguments support, and a new regular expression engine (preserves comments and should make things go faster). Notice that the new file …

Continue reading »

Oct 10 2008

Constructor Arguments in VBScript!

Our Class Inheritance Parser has just received a major update. Among the changes is the support for Constructor Arguments. Most programming languages allow you to pass parameters when you create an instance of your class. These are called constructor arguments. VBScript’s constructor (the Class_Initialize sub) can not receive parameters, so usually we must resort to …

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 »

Older posts «

Fetch more items