Array can be created in 3 ways in QTP as mentioned below.
Fixed size Array in QTP
Dim A(10) - single dimension
Dim MyTable(5, 10) - multi-dimension
Dynamic Array - size not fixed
Dim MyArray() ReDim MyArray(25)
Using Array Function in QTP
A = Array(10,20,30)
B = A(2) ' B is now 30.
More interview questions and answers on arrays in QTP are given below.
Fixed size Array in QTP
Dim A(10) - single dimension
Dim MyTable(5, 10) - multi-dimension
Dynamic Array - size not fixed
Dim MyArray() ReDim MyArray(25)
Using Array Function in QTP
A = Array(10,20,30)
B = A(2) ' B is now 30.
More interview questions and answers on arrays in QTP are given below.
- What is the difference between dictionary and array in QTP?
- How to create dynamic 2 dimensional array in QTP?
- How to sort array of strings in qtp?
- How to create array of dictionary in qtp?
- How to define or declare array in qtp?
- How to return array from function in qtp?
- How to find the length of array in qtp?
- How to find the size of array in qtp?
- Explain the ubound function in qtp.
- Explain the split function in qtp with example.
- What is dotnetfactory object in qtp?
You may like QTP (UFT) Master Page.
No comments:
Post a Comment
Please Leave your reply. We value your feedback and inputs