Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
intervw question faced in ness technologies
#1
Not Solved
how to make sure that the items in a wintree are sorted al

thanks for every help
Reply
#2
Not Solved
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)
Reply
#3
Not Solved
Are you sure this will work?

Can you do a test run let us know your optput this below code?
Thanks,
SUpputuri
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Challenges faced in QTP rocky9 0 3,430 06-05-2015, 08:30 PM
Last Post: rocky9
  I faced this question in interview epo2l 7 7,701 02-19-2010, 12:48 AM
Last Post: wheelercha
Shy What are the challenge(Difficulties, hards stuffs) you've faced so far in QTP sudhitsr 1 9,898 03-28-2008, 03:32 AM
Last Post: Shiva

Forum Jump:


Users browsing this thread: 1 Guest(s)