QTP

IE Error: A script is causing IE to run slowly

by Anshoo Arora ON December 5, 2010 · Posted In All, QTP, QTP/Web, VBScript · 11 comments

This tip shows how to disable the Error message: “A script on this page is causing Internet Explorer to run slowly” with using VBScript.

QTP CreationTime

by Anshoo Arora ON September 3, 2010 · Posted In All, QTP, QTP/Web · 20 comments

This article explains how the Browser’s CreationTime ordinal identifier works in QTP with examples.

QTP GUI Objects, VBScript & Try Catch Finally

by Anshoo Arora ON August 30, 2010 · Posted In All, QTP, VBScript · 3 comments

VBScript’s error handling techniques have been quite limited to On Error statements, and even though they satisfy our needs to some extent, the lack of incorporating dynamic behavior with them has been a much bigger issue. In this article, I will implement a Try-Catch-Finally statement with QTP’s GUI objects along with an On Error statement. This will enable dynamic behavior and enable us to easily divide flow depending on different error conditions.

Browser: Not Required!

by Anshoo Arora ON May 2, 2010 · Posted In All, QTP, QTP/Web · 32 comments

There is a common perception that we must include the Browser object in hierarchies when working in the Web environment. The truth is that, we really don’t need to include the Browser object if the Page object has been included in the hierarchy.

QTP: Working With SiebList (Revised)

by Anshoo Arora March 20, 2010 9 comments

The previous articles written for the Siebel category were written from a perspective of version 7.7 and 7.8. I know of many of you have already have upgrades Siebel to 8.1, and so have we! This gave me a chance to update my old article on the SiebList object. Not much has changed, actually, but the code here has been optimized for better performance and compatibility with the latest version. Information regarding its limitations has also been included.

Book Review: QuickTest Professional Unplugged

by Anshoo Arora March 9, 2010 7 comments

This is a short review of the book QuickTest Professional Unplugged, which is the first book of its kind to be made available to the QuickTest community.

QTP Browser Methods: .Activate .Maximize .Minimize

by Anshoo Arora March 8, 2010 58 comments

This article demonstrates a quick tip to activate, minimize or maximize browsers. Unlike a Standard Windows Window object, Browser does not support the Activate, Minimize, Maximize methods. Therefore, we can create our custom function and tie it with the Browser object using RegisterUserFunc.

QTP: Working With Multiple Windows Applications

by Anshoo Arora November 26, 2009 14 comments
Working with Multiple Windows Applications

There are several instances where automation developers have to work with applications containing multiple windows, in a Standard Windows Environment. This technique uses a similar methodology as demonstrated in the article for Web-based apps, but the crux of this technique differs. It can be used by automation developers testing most types of windows applications.

Introduction to Parameterization with QTP’s Local DataTable

by Anshoo Arora November 23, 2009 117 comments
Parameterization with Local DataTable

Parameterization is a process in which parameters, or variables are substituted for hard-coded values which help perform the same operations on the AUT with multiple sets of data. In other words, in QTP, parameterization helps automation developers test an application with different data from a single action (or multiple actions) through multiple iterations.

Automating Windows Calculator Part 1

by Anshoo Arora October 28, 2009 29 comments
Calculator

In this article, we will see a few interesting ways to automate the Windows Calculator. The concepts in this article should serve as an excellent way of understanding the automation process with QTP, how functions can help increase code reuse, and why at times its extremely important to validate user-input. A must read!

QuickTest’s Custom CheckPoints and Beyond

by Anshoo Arora October 21, 2009 65 comments

This article will discuss the concepts of Custom Checkpoints, their benefits, when to use them and how they provide us with greater flexibility in script development. Custom CheckPoints offer an easier and highly flexible way of construction your object verifications, which is a core concept of test automation. The concepts below, when coupled together can help you build extremely robust scripts, with enough information that your user desires.

QTP: Working with Multiple Browser Applications (Revised)

by Anshoo Arora October 19, 2009 32 comments

Web applications due to their dynamic nature, make script development quite challenging. I am writing this article in an attempt to simplify one of its aspects that automation developers face while working with Web applications. We will see how it can be made extremely easy to work with multiple browsers with the use of a Dictionary object, to which we can add Browsers, remove them, change the way we reference them and much more.

QTP Siebel Error: Test Execution halts when a SiebButton is clicked

by Anshoo Arora October 15, 2009 9 comments

We had an issue with one of the SiebButton objects’ in our environment. When we executed a statement to click on this particular SiebButton, the next statement would not execute. What happens is, as we click this particular SiebButton, a Dialog box pops up immediately. For some reason that we have not been able to figure out, the execution marker from the SiebButton(“”).Click statement will not move to the next line.

QTP: Creating a Highly Efficient Test-Data Dictionary

by Anshoo Arora October 8, 2009 72 comments

This article describes how the management of test data can be greatly simplified with the help of ADO and the Dictionary Object. This concept shows how your data-pool needs to be accessed only once to create a highly efficient and fast-performing data-dictionary. Examples and Demos included.

Custom View Options for QTP’s Expert-View Editor

by Anshoo Arora October 1, 2009 15 comments

Today, after being quite tired of switching windows between Notepad++ and QTP, I started experimenting with different layouts I can create to make the the QuickTest editor a little more viewing-friendly. After a few minutes of playing around, I finally have something that I like.

Upcoming: Automation Framework

by Anshoo Arora September 29, 2009 58 comments

I have been planning for a while now to release a framework for our community. I even started on a few ideas, but I felt it would be best if I received some feedback from you guys. Please use the comment section of this post to share your ideas of what you would like to see included in the framework.

QTP: Working with Large Object Hierarchies (Siebel Objects)

by Anshoo Arora September 17, 2009 22 comments

This article demonstrates how working with large object hierarchies (like Siebel’s) can be greatly simplified in QTP by using one of the 4 techniques mentioned here.

QTP: Understanding the Description Object (Description.Create)

by Anshoo Arora September 6, 2009 144 comments

This article covers the principles of creating a Description Object in QTP and its amazing use with the ChildObjects method. We will see how we can create an object description with a single property, with multiple properties, by using regular expressions and finally putting all these concepts into their application with the ChildObjects method.

QTP: Create Test Archives

by Anshoo Arora August 27, 2009 0 comments

This post explains how to create test archives elegantly and quickly and store all run-time files with a date and time stamp.

QTP: Working with Multiple Browser Applications – A Concept

by Anshoo Arora August 24, 2009 0 comments

This article demonstrates an elegant approach to working with multiple Browsers through the use of Classes and Dictionary Object. Examples included.

QTP 9.2: Delay Using CreationTime:=0 With 1 Open Browser

by Anshoo Arora August 24, 2009 8 comments

This article outlines how one can avoid the 10-15 delay with QTP 9.2 with 1 open browser.

QTP DOTNetFactory (6): Adding a RadioButton Control

by Anshoo Arora August 19, 2009 11 comments

Like the previous article, this will also be a little fast-paced and will cover how to create a Custom form and add a RadioButton control to it.

QTP DOTNetFactory (5): Creating a Custom Form with Multiple Objects

by Anshoo Arora August 14, 2009 8 comments

In this article, we will see how we can add and use multiple objects in a user form. It will cover the concepts discussed in the previous 4 articles.

QTP DOTNetFactory (4): Adding a CheckBox Control

by Anshoo Arora August 14, 2009 4 comments

This article will cover the basics of DOTNetFactory with QTP and demonstrate the technique of adding a CheckBox Control to a Custom Form.

QTP DOTNetFactory (3): Adding a Button Control

by Anshoo Arora August 14, 2009 8 comments

This article will cover the basics of DOTNetFactory with QTP and demonstrate the technique of adding a Button Control to a Custom Form.

QTP DOTNetFactory (2): Adding a Text Box Control

by Anshoo Arora August 14, 2009 9 comments

This article will cover the basics of DOTNetFactory with QTP and demonstrate the technique of adding a TextBox Control to a Custom Form.

QTP DOTNetFactory (1): Creating a Custom Form

by Anshoo Arora August 13, 2009 17 comments

In this series of articles, we will discover how to use the DOTNetFactory to create a user form and how to add different object types to it.

QTP: Using VBScript Classes as Test Modules I

by Anshoo Arora August 12, 2009 51 comments

Usage of modular classes helps in keeping all methods and properties for a module intact, and if done correctly, this can simply maintenance greatly.

Descriptive Programming (DP) vs Object Repository (OR)

by Anshoo Arora August 10, 2009 58 comments

This article compares the uses of Descriptive Programming vs Object Repository in QTP.

QTP: Verify Multiple Object Properties – An Elegant Approach

by Anshoo Arora August 10, 2009 31 comments

This article discusses an elegant way of multiple cross-checking expected vs actual properties of objects.

QTP: Synchronization for AJAX Applications

by Anshoo Arora August 10, 2009 27 comments

This article shows a technique that can be used to synchronize QTP with AJAX applications.

Descriptive Programming (DP) – 4 (Creating a Test Script)

by Anshoo Arora August 10, 2009 113 comments

This is the 4th article in the series and will show how DP can be used to create a test module in QTP.

Descriptive Programming (DP) Concepts – 3 (Ordinal Identifiers)

by Anshoo Arora August 10, 2009 74 comments

This article outlines the concepts of Ordinal Identifiers used in QTP. We will also create a simple test module (step by step) for a login process using only Descriptive Programming (DP).

Descriptive Programming (DP) Concepts – 2 (Regular Expressions)

by Anshoo Arora August 10, 2009 69 comments

This topic provides an excellent introduction to Regular Expressions with DP in QTP. It also discusses the famous wild card character in detail.

Descriptive Programming (DP) Concepts – 1

by Anshoo Arora August 10, 2009 128 comments

Descriptive programming has become the technique of choice for many QTP test developers. This topic provides an excellent introduction to DP with QTP.

QTP: Closing Multiple Browser Windows

by Anshoo Arora August 10, 2009 48 comments

This article outlines a few techniques to close Internet Explorer (IE) browsers in QTP (Closing browser techniques).

QTP: Get Object Count

by Anshoo Arora August 10, 2009 27 comments

This article outlines an easy way to retrieve object count when working with QTP. It can be used to include and exclude hidden objects in the page, to retrieve only the visible object count.

Passing Multiple Values from Functions

by Anshoo Arora August 10, 2009 3 comments

In this topic we will learn how to pass 2 or more values from function using Global Variables, Arrays, Dictionary Objects, Concatenated Strings and with the use of ByRef.

Passing Parameters ByRef & ByVal (Revised)

by Anshoo Arora August 10, 2009 17 comments

This article demonstrates the differences between ByRef and ByVal in VBScript. It will also provide the pros and cons and excellent examples to get you started immediately.

QTP: Working with SiebCalculator

by Anshoo Arora August 10, 2009 0 comments

This is the 4th article in the Siebel series. In this article, we will detail an effective way to work with the Siebalculator Object using QTP. Examples included.

QTP: Working with SiebList

by Anshoo Arora August 10, 2009 4 comments

This article introduces the SiebList object in a QTP and Siebel Environment, and demonstrates some methods that can help in working with a SiebList like an expert.

QTP: Working with SiebPickLists

by Anshoo Arora August 10, 2009 3 comments

This article introduces the SiebPickList object in a QTP and Siebel Environment, and demonstrates some methods that can be performed to enhance working capabilities in Siebel.

QTP: Working with Siebel – An Introduction

by Anshoo Arora August 9, 2009 44 comments

This article introduces the Siebel add-in with QTP and outlines various techniques to work with Siebel objects. It also offers an excellent introduction to the Siebel automation process with QTP.

Search Web Object – Simplified

by Anshoo Arora August 8, 2009 8 comments

The IsObjectFound class implements the search function for the specified web object and returns true if a visible instance is found. Considers Visible and Hidden Objects.