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
What is the use of ordinal identifier in qtp?
what testplan contents and what test strategy contents,what is the diff b/w them
To which environments does quicktest professional supports?
How to use checkpoints in qtp ?
1.How do u prepare the test suits in QC? 2.How do u convert requirements to test plan in QC?
ACTUALLY I AM WORKING IN THE DISTRIBUTION DOMAIN.MY COMPANY IS PROVIDING DISTRIBUTION SOFTWARE FOR PHARMA AND FMCG DISTRIBUTORS.HERE I AM USING QTP 9.2.HERE IN MY APPLICATION WHILE RECORDING ONE WINDOW APPEARS.IN THAT I CAN SELECT THE ITEM OR NO NEED TO SELECT.BUT WHILE RUNNING THE SAME SCRIPT THE WINDOW MAY NOT APPEAR OR APPEAR.HOW TO WRITE SCRIPT FOR THIS
How will you check a web application for broken links using qtp?
how can we preform retesting(DATA driven test) using function please gine the code for loginpage
Will down time for server and content maintenance/upgrades be allowed? how much?
Explain how qtp identifies objects?
What are the five challenges you faced in QTP?
i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?
what is stepin & stepout?
What is the difference between shared and local object repository?
What are the types of object repository in qtp?