![qtp automation tool tutorial qtp automation tool tutorial](https://www.learnqtp.com/wp-content/uploads/2019/04/pdf-addin-addin-manager.jpg)
- #Qtp automation tool tutorial code#
- #Qtp automation tool tutorial series#
- #Qtp automation tool tutorial windows#
![qtp automation tool tutorial qtp automation tool tutorial](https://www.wisdomjobs.com/tutorials/testing-an-application-using-qtp.png)
However, for a dynamic array, no size or number of dimensions is placed inside the parentheses. The array is initially declared within a procedure using either the Dim statement or using the ReDim statement. We can also declare an array whose size changes during the time our script is running. In a two-dimensional array, the first number is always the number of rows the second number is the number of columns. In the following example, the MyTable variable is a two-dimensional array consisting of 6 rows and 11 columns: We can have as many as 60 dimensions, although most people can’t comprehend more than three or four dimensions. Similarly, the data can be retrieved from any element using an index into the particular array element you want.Īrrays aren’t limited to a single dimension. We assign data to each of the elements of the array using an index into the array.īeginning at zero and ending at 4, data can be assigned to the elements of an array as follows:
#Qtp automation tool tutorial series#
X=100: Y=200 3.7 Scalar Variables and Array VariablesĪ variable containing a single value is a scalar variable.Ī variable containing a series of values, is called an array variable.Īrray variables and scalar variables are declared in the same way, except that the declaration of an array variable uses parentheses () following the variable name.Īlthough the number shown in the parentheses is 3, all arrays in VBScript are zero-based, so this array actually contains 4 elements. The variable is on the left side of the expression and the value you want to assign to the variable is on the right. Values are assigned to variables creating an expression as follows:
![qtp automation tool tutorial qtp automation tool tutorial](https://www.tutorialspoint.com/qtp/images/automation_testing_process.jpg)
The lifetime of a script-level variable extends from the time it is declared until the time the script is finished running.Īt procedure level, a variable exists only as long as you are in the procedure. The lifetime of a variable depends on how long it exists. This is a script-level variable, and it has script-level scope. If we declare a variable outside a procedure, we make it recognizable to all the procedures in our script.
#Qtp automation tool tutorial code#
When we declare a variable within a procedure, only code within that procedure can access or change the value of that variable.
![qtp automation tool tutorial qtp automation tool tutorial](https://www.learnqtp.com/wp-content/uploads/2008/02/learn-qtp-for-beginners.jpg)
Select block of statement and use short cut key Ctrl + M (for comment).Rem comment (After the Rem keyword, a space is required before comment.)Īpostrophe (‘) symbol before the comment 2.2 Comment/Uncomment a block of statements We can use comments for making one or more statements disable from execution.We can use comments for making the script understandable.The comment argument is the text of any comment we want to include.
#Qtp automation tool tutorial windows#
When we run one of these types of files, Windows starts Windows Script Host, which invokes the associated script engine to interpret and run the file. These extensions are registered with Windows. js extension a stand-alone script written in VBScript has the. A stand-alone script written in JScript has the.