Forum Discussion
What type of application?
What is it written in?
What type of List? (There are many!)
Classname of the List?
What method are you using to apply the selection?
Scripted or Keyword test?
What language if scripting?
What browser if web? (And what version of the browser)
And what version of TestComplete.
More information required! You have provided us with little more than "It doesn't work".
What type of application? Windows application developed using C++
What is it written in? Vb script
What type of List? (There are many!) Syslistview 322
Classname of the List?
What method are you using to apply the selection?
Scripted or Keyword test? Script
What language if scripting? VB
What browser if web? (And what version of the browser) N/A
And what version of TestComplete.10.60.3387.7
Below is the Code, whcih i got when recorded (i am clicking on "DefaultSettings")
Sub Test5
Call Aliases.d950system.wndD950Class.MDIClient.wndAfx.page32770.page32770.pageSnapshots.SysListView322.DblClickItem("defaultSettings", 0)
End Sub
- TanyaYatskovska10 years agoSmartBear Alumni (Retired)
Hi hc_vinod,
Thanks for replying to the questions. Did I get it right that the code is executing successfully right after you start TestComplete?
- hc_vinod10 years agoOccasional Contributor
Yes, After Restarting Test complete , it works
- TanyaYatskovska10 years agoSmartBear Alumni (Retired)
Thanks for your clarification.
Let’s check what control items TestComplete sees during the test execution. Add the following code to your test:
Sub Test5
Set obj = Aliases.d950system.wndD950Class.MDIClient.wndAfx.page32770.page32770.pageSnapshots.SysListView322 Log.Message("Number of items is " & obj.wItemCount)
For i=0 To obj.wItemCount-1 it = obj.wItem(i,0) Log.Message(it) Next
Call obj.DblClickItem("defaultSettings", 0)
End SubWhat do you see in the test log?
Related Content
- 4 years ago
- 5 years ago
- 10 years ago