Home
KnowledgeInbox (by Tarun Lalwani) website is an effort to share my work on Quick Test Pro (QTP). QTP is a testing tool used for regression and functional testing of an application. QTP provided by Mercury Interactive is a “Record & Playback” automation tool. So is it about explaining the features of QTP and one more case study on using QTP? No… the website will help in giving more insight into some of the QTP features making them easy to understand and use, it will explore things that can be done with QTP and some of which not documented anywhere. Apart from this I have developed some libraries which will definitely improve your experience with QTP. The website is going to be an on-going work. Many more things to be explored!
Get your hands on the first ever book on QTP
Get 10% extra discount by using JULYCONTEST10 during checkout on Lulu (Valid till 30th June)
Recent posts:

Loading ...
Recently while automating an application it was required for me to fill a relative date in one of the place. This meant capturing a reference date from the screen and adding a relative date to the same. The relativity of the date can be expressed in various forms as shown below
1 hr
2 days 3 hours
1 [...]
Register or Login to read the full article...Have questions related to this article? Want to request a new article? Use our forums to post your questions
Viewed 140 times
Tags used -
Add, date, Reference, Relative, time

Loading ...
Window Environment variables can be used to store User specific or Machine specific information. This information is accessible to all windows program. Below is the list of some common windows environment variables
TEMP - Temporary directory path
TMP - Temporary directory path
PATH - Folder locations where a file is searched when the complete path is not provided
windir [...]
Register or Login to read the full article...Have questions related to this article? Want to request a new article? Use our forums to post your questions
Viewed 88 times
Tags used -
access, Accessing, Environment, read, System, update, USER, variable, windows, write

Loading ...
Capturing screenshots to QC in test result can quickly eat up all the space on the QC Server. This makes it sensible to capture images only in case a Test has failed. This can allow easy debugging of Test Cases to see what error had occurred when the test failed. Adding this functionality to your [...]
Register or Login to read the full article...Have questions related to this article? Want to request a new article? Use our forums to post your questions
Viewed 111 times
Tags used -
Add, Attach, BPT, Business Components, Business Process Testing, capture, Component, CurrentRun, desktop, Error, failure, file, images, QC, Results, run, screencapture, Screenshot, Terminate, Test, test lab, test result

Loading ...
Executing batch jobs or commands through window command prompt requires recognizing the MSDOS Window. The DOS window can be launched from a QTP script using the below command
SystemUtil.Run “cmd”
This launched a MS-DOS console as shown in the image below
The above window can be recognized using the title of the Window “C:\Windows\System32\cmd.exe”
Window("title:=C:\\Windows\\System32\\cmd\.exe").Activate
or
Set oDosW = Description.Create
oDosW("regexpwndtitle").Value = [...]
Register or Login to read the full article...Have questions related to this article? Want to request a new article? Use our forums to post your questions
Viewed 122 times
Tags used -
batch, cmd, cmd.exe, command, console, dos, jobs, MSDOS, prompt

Loading ...
HTML and XML are very common entities in the testing/automation world. At time we are required to convert the HTML/XML to a Plain text version. Example of such a conversion can be seen below
<HTML><BODY><FONT color="red">Click on the Login link</FONT></BODY></HTML>
The converted text for about HTML would be “Click on the Login link”. One example of such [...]
Register or Login to read the full article...Have questions related to this article? Want to request a new article? Use our forums to post your questions
Viewed 79 times
Tags used -
Convert, HTML, Plain, Strip, text, XML

Loading ...
Working with BPT is not always same as working with normal QTP script. On my quest to find the current test and component iteration for a Business Process Test I found that below two Environment variables always return 1
Environment("TestIteration")
Environment("ActionIteration")
Inquiring with HP i found out that currently this is not possible with BPT. I was disappointed [...]
Register or Login to read the full article...Have questions related to this article? Want to request a new article? Use our forums to post your questions
Viewed 212 times
Tags used -
ActionIteration, BPT, Business Components, Business Process Testing, Component, Current Component, Current Iteration, CurrentRun, iteration, Iterations, Scripted Component, StepFactory, TestIteration

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...Have questions related to this article? Want to request a new article? Use our forums to post your questions
Viewed 298 times
Tags used -
function, GetRef, overload, overridden, Override, Overriding, pointer, redefine, redefining, Replace, VBScript

Loading ...
QuickTest Professional Unplugged (Paperback)
By Tarun Lalwani (Author)
List Price: $49.99 + S/H
Current Price: $49.99 + S/H
Pages: 442, Size: 8.5″ X 11″
Pre-booking now open for Indian readers
Get 10% extra discount by using JULYCONTEST10 during checkout on Lulu (Valid till 31st July)
HP QuickTest Professional is a functional test automation tool. It supports a Record and Playback framework [...]
Read the full article...Have questions related to this article? Want to request a new article? Use our forums to post your questions
Viewed 5,278 times
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 is my first ever article on BPT and to be frank I am not a very great fan of BPT framework. But that is what i am currently working on. It actually feels like someone handing a 2mm pistol to a Elite force commando and asking them to fight with the same. But as [...]
Register or Login to read the full article...Have questions related to this article? Want to request a new article? Use our forums to post your questions
Viewed 356 times
Tags used -
Actual, BPT, Business Components, Business Process Testing, compare, Evaluate, Expected, parameter, Value