How can i check elements sorted in dorpdown using qtp..
Answer Posted / lak
1) Create an array to capture all the Weblist items - call
it as appArray
2) Sort the appArray to display all items in ascending order
For i = 0 to UBound(itemArray)
itemArray(i)
Next
- Again there is no sort function which is readily
available. You would have to code for the sorting to
something on similar lines -
for i = UBound(appArray) - 1 To 0 Step -1
for j= 0 to i
if appArray(j)>appArray(j+1) then
temp=appArray(j+1)
appArray(j+1)=appArray(j)
appArray(j)=temp
end if
next
next
3) Save this as sortedArray. Compare some of your original
appArray items to the sortedArray items in terms of
positions.
If they are different, your verification is a fail and if
an exact match, its a pass.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to find the difference between 2 dates in qtp?
action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans
How to write business scripts using object repository with different scenarios
What is the default object synchronization timeout in qtp?
The structure of keyword driven frame work is like a folder structure the different sub folder are 1-functional libray folder 2-object repository folder 3- database folder 4-appliction1.xls 5-initalzation vbs file 6-sequence file 7-driver script 8-test case list file My question is whether these are in a local server machine or in our pc.((whether It like Vss). can u give example of driver script(code)
How do you do batch testing in wr & is it possible to do in qtp, if so explain?
Explain types of descriptive programming?
What is the use of ordinal identifier in qtp?
Presently i am working on QTP 8.2 Version,i want to know features in 9.2 version, because i have not sufficient time to put the effort on the 9.2 version
What is the difference between the design-time and run-time data tables?
how to test use the quality control .how to verify the image verification
What is the difference between byref and byval in qtp?
Is there any pdf or online book for QTP Scripting? Let me know more about QTP Scripting.
breef description of batch testing ?
What are the factors on which script execution time is dependent?