Functions

Automating Windows Calculator Part 1

by Anshoo Arora ON October 28, 2009 · Posted In All, QTP, QTP/Windows · 29 comments

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!

Passing Multiple Values from Functions

by Anshoo Arora ON August 10, 2009 · Posted In All, QTP, VBScript · 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 ON August 10, 2009 · Posted In All, QTP, VBScript · 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.