
Loading ...
In this article we will see how to override function using function pointer. Let’s first understand what overriding means. Overriding a function means changing the behavior of an existing function and defines a new behavior. It is different from function overloading. Function overloading allows a method to exhibit different behavior based on method signature while [...]
Register or Login to read the full article...
Tags used -
function, GetRef, overload, overridden, Override, Overriding, pointer, redefine, redefining, Replace, VBScript

Loading ...
QuickTest Professional Unplugged
By Tarun Lalwani (Author)
List Price: $49.99 + S/H
Current Price: Click here to see buying options
Pages: 442, Size: 8.5″ X 11″
Now available in India
HP QuickTest Professional is a functional test automation tool. It supports a Record and Playback framework out of the box, where we can record and capture our interactions with the application [...]
Read the full article...
Tags used -
Advanced, Automation, Basics, Book, BPT, Descriptive Programming, Ebook, Elearning, Excel, HP QuickTest Pro, Introduction, Lalwani, Learn, Mastering, Material, OTA, Outlook, Professional, QA, QC, Quality Center, QuickTest, Session, Tarun, Tarun Lalwani, Training, Unplugged, VBScript, word

Loading ...
This question has been asked a million times and the answer has been “Not possible” all the times. But not this time. Recently the query was asked on KnowledgeInbox forums and I had promised to get back soon on this.
On my quest to do the impossible I started researching on how exactly scripting technologies work. [...]
Register or Login to read the full article...
Tags used -
catch, finally, JavaScript, language, scripting language, try, VBScript

Loading ...
Sometimes we have to validate that on doing some heavy operation the cursor of the of the application needs to change to the hour glass one. Such validation though does not deserve to be automated, as they are best tested manually but having the ability to test it is an added advantage.
Recently this query was [...]
Register or Login to read the full article...
Tags used -
API, busy, cursor, cursor type, cursor windows, get, GetCursor, hand, hour glass, Mouse, pointer, validate, validation, VB, VBScript, wait

Loading ...
A typical if else condition in VBScript would look like below
If (message = "ok") Then
Msgbox "I am calling ok"
Else
Msgbox "I am calling not ok"
End if
VB provides a elegant function named IIf for such small if else conditions. The function can be easily witten in VBScript
Public Function IIf(ByVal [...]
Register or Login to read the full article...
Tags used -
Else, If, IIf, VBScript

Loading ...
Callback is a function which is executed on completion of a registered event. VBScript is not a event driven language, which means we are limited in terms of events for which callback can be implemented.
This article will demonstrate how to implement a callback on finish/terminate event. This finish/terminate event could be one of the following
The [...]
Register or Login to read the full article...
Tags used -
Call, Callback, Class, end, ends, Error, execute, function, script, VBScript

Loading ...
What is variable?
Variable is a named container used to store values
Declaring a variable
There are three possible ways to declare a variable
Dim <variablename>
Public </variablename><variablename>
Private </variablename><variablename></variablename>
Ex –
Dim x, y, z
Dim a
Dim b, c
Variable naming rules
Variable names should following the below rules
Must not exceed 255 characters.
Must be unique in the [...]
Read the full article...
Tags used -
Coding, Const, convention, date, Double, explicit, float, function, int, naming, option, standards, time, VB, VBScript

Loading ...
VBScript is a scripting language. A VBScript can be executed in various ways
Using Windows Script Host (wscript.exe and cscript.exe). Will cover this later
Inside HTML page for IE Browser.
Other host process which allows to execute code in VBScript format (ex - HP QuickTest Pro)
Internal methods and objects
VBScript provides method and objects that can be used [...]
Read the full article...
Tags used -
command, CScript, HTML, IE, Introduction, Mercury, VBScript, WScript

Loading ...
Test Design Studio (TDS) is enhanced IDE for WinRunner and QTP. It provides a Visual Studio style editor which provided enhanced code editing experience. This review will walk you through some of the key features of TDS
Solution
A solution allows you to group various types of files into one solution. This includes QTP, Winrunner, VBS, text, [...]
Read the full article...
Tags used -
Editor, intellisense, Patterson, Patterson Consulting, TDS, Test Design Studio, VBScript