02-27-2012, 12:01 PM
how to make sure that the items in a wintree are sorted al
thanks for every help
thanks for every help
|
intervw question faced in ness technologies
|
|
02-27-2012, 12:01 PM
how to make sure that the items in a wintree are sorted al
thanks for every help
02-27-2012, 07:47 PM
(This post was last modified: 02-27-2012, 07:48 PM by inborntester.)
could you please try like below.
Code: n=Window("My Computer").WinTreeView("SysTreeView32").GetROProperty("items count")
sorted = true
For i=0 To n-2 step 1
before=Window("My Computer").WinTreeView("SysTreeView32").GetItem(i)
after=Window("My Computer").WinTreeView("SysTreeView32").GetItem(i+1)
If before > after Then
sorted = false
Exit For
End If
Next
msgbox(sorted)
05-29-2012, 09:40 AM
Are you sure this will work?
Can you do a test run let us know your optput this below code?
Thanks,
SUpputuri |
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| Challenges faced in QTP | rocky9 | 0 | 3,722 |
06-05-2015, 08:30 PM Last Post: rocky9 |
|
| I faced this question in interview | epo2l | 7 | 8,766 |
02-19-2010, 12:48 AM Last Post: wheelercha |
|
|
|
What are the challenge(Difficulties, hards stuffs) you've faced so far in QTP | sudhitsr | 1 | 10,386 |
03-28-2008, 03:32 AM Last Post: Shiva |