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 many types of recording facility are available in quicktest professional (qtp)?
Hi Samrat, Thank u very much, what u said it is right.
What are the different ways to invoke an application using QTP?
what is the diff b/w assistive and mandatary rules of object repository in QTP???
How to attach a file to TD?
How to analyzing test results using quicktest professional (qtp)?
Explain the features of quick test pro(qtp)?
Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?
What is fragmentation and paging?
What is ‘object spy’ and what is the function of object spy in qtp?
We stored into the objects OR and then write the scripting
i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click
How to carry out bit map check points in QTP
When Recovery scenario actually starts while testing the application?
What is expert view and keyword view?