Forum Discussion
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
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?
- hc_vinod10 years agoOccasional Contributor
Thanks for the code
But i cannot find "Default Settings" in witem array
- TanyaYatskovska10 years agoSmartBear Alumni (Retired)
Do you see this item on the screen when executing the test?
Related Content
- 4 years ago
- 6 years ago
- 10 years ago
Recent Discussions
- 16 minutes ago
- 6 hours ago