In the previous article, we saw the common string manipulation functions that can be used in QTP. In this article, we will cover the arithmetic or math functions that can be used in QTP. Before we begin with this article, please note that you would not be using arithmetic functions as often

This article (and few more upcoming articles on VBScript Function Reference) is an extension of the QTP VBScript Tutorial series that we had started sometime back. In this article, you would see some of the important and common VBScript string manipulation functions that you would most likely be using almost daily while working with QTP.

Many a times when you are writing your test scripts, you might encounter some lines of code that need to be executed multiple times during the course of the script. Rather than repeating the same code in your script multiple number of times, the common practice is to create a function for it and call

In the previous article on using loops in QTP, we saw the basics of different types of loops that you can use in QTP. However in many cases you might have to use nested loops. Also, there are lot of scenarios that require use of loops with arrays and conditional statements. Let’s see how this

In this fifth installment of QTP VBScript Tutorial series, we would cover the various looping statements that are available in VBScript. Looping statements allow you to repeatedly execute a set of statements multiple times. The number of times the code is executed depends upon many factors such as some loops are executed until a condition

Usually, the test cases you work on wouldn’t have a straight linear flow. You would normally come across many conditions in your test case flow and based on the results of these conditions you would be required to perform different actions. In VBScript this can be achieved using the following 2 conditional statements –

Before starting with the code intensive topics (such as working with conditional statements & loop constructs in VBScript) as part of the QTP Tutorials series, it would be a good idea to first touch upon the most basic stuff in VBScript, which is ‘Writing and executing your first program in VBScript’. This is important because

In the previous article of this series we covered QTP VBScript basics and the VBScript variables. In this article, we’ll see the different types of operators in VBScript that you would be using frequently while working with QTP scripts. Operators in VBScript can be divided into four different types.