Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
intervw question faced in ness technologies
#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


Messages In This Thread
RE: intervw question faced in ness technologies - by inborntester - 02-27-2012, 07:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Challenges faced in QTP rocky9 0 3,431 06-05-2015, 08:30 PM
Last Post: rocky9
  I faced this question in interview epo2l 7 7,702 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)