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 do u manipulating INI, DLL and / or registry files in support of your test environment? actually what do u mean by INI and DLL or registry files. plzzz its urgent do answer
To which environments does quicktest professional supports?
what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?
can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks
Does any one worked on JIL Emulator , Testing with QTP(automation). Trail Version of QTP is not identifying the child objects of JIL emulator, Can any one help me out ,
1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.
Hi, I am using OutputCheckPoint and I am storing the value in the data table. The stored value for column:bedroom:"Bed:4" The another value for column:bathroom:"Bath:2 Full,1 Partial" I need only the no 4 from the first column. I need only the no 2,1 from the second column. I used split array,but it also show array(0) has the value"bed:4" ..... Even though I highlight only 4,It is seleting the full value "bed 4".How can I get only the nos Thank you Uma
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?
Explain types of output values?
Can we run test with out adding object in object repository? How it is possible?
What are the steps involved in recovery scenario wizard?
In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail
How to use Environment parameterization? Explain with an example.
what is the difference between the modular framework and datadriven frame work
What is text/text area checkpoint?