Delphi Applications - Virtual String Trees (VSTs)
I'm testing Delphi applications that use Virtual String Trees (VSTs) a lot and I am struggling to get TestComplete to recognise these objects. As of yet I have not been able to work out which Project Property > Object Mapping I need to add this class to in order to identify properties within the VST.
When I use the object spy and select an VST object it returns the error "Error: An exception occurred: 0x0EEDFADE; class: EComponentError; description: 'TVirtualStringTree has not been registered as a COM class'" on the ComObject property. I am using debug builds of the Delphi applications.
Has anyone else got experience using VSTs within Delphi applications? If so, how did you do it? They typically store a lot of information therefore not being able to read the properties of them makes it difficult to test the application properly.
Solved! Go to Solution.
WAAAAAAY back in the day, I had to play with VST. The problem with them is what is displayed are Delphi records and those are not recognized objets in TC. So, I had to write my own code to utilize some keystrokes and such to find and edit the objects and to look at some of the behind the scenes properties that allow access to the contents via CSV. It's a bit of a pain but it worked. And no, I don't have that code available to me right now.
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Please check if the following discussion helps you:
SmartBear Community and Education Manager