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
If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?
Explain about Test Fusion Report of QTP?
what is run-time data?
Explain about the test fusion report of quicktest professional (qtp)?
Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com
Explain in brief about the qtp automation object model (aom).
is there any addin for remedy user application
if numbers are always changing write a script for that
What is the difference between call to existing action and copy of an action?
If you are testing a web application then what will you test in that application?
How to use descriptive programming?
How to handle Java tree in QTP?
how to convert 100 into hundred repees only and viceversa
please give me the code for doing retesting of gmail login page using functions so the function has to give the value
Explain the keyword driven framework for the window based application complete creation of library files,env file,test data,recovery file,excel file ,repository etc and as a test engineer how is ur approach