Forum Discussion
Ah... TVirtualStringTree... how I loathe thee... ;)
Back in the day I tested a desktop application coded in Delphi that had a LOT of those built into it. The problem with the TVirtualStringTree is that the tree nodes in the string tree are Delphi record types... they are not OLE compatible data types so you can't get to the nodes using standard TestComplete functions and methods like SelectItem or ClickItem. You lucked out that SelectItem at least works for the first column... that doesn't always work, though, depending upon how the tree is implemented.
IIRC (and it's been at least 7 years since I've last worked with this component), in our implementation of the TVirtualStringTree, it was wrapped with additional components that allowed for searching and/or filtering of the contents of the string tree which allowed us to use other methodology to find and select the records we wanted. No, it was not EXACTLY interacting with the component as is, but our goal was not to test the component but to test the functionality of the application that used the component so those work arounds worked for us.
So... my advice to you is to investigate your application to see if there is some other way to select the nodes/columns you want in your component and write some helper script code that you can call regularly to click on those columns.
alternatively, get in touch with your developers and see if they can build in some hidden helper functions directly into the application that are only present for your automation build.
Related Content
Recent Discussions
- 20 hours agoMW_Didata