Map custom property for C++ application
I have an application written in C++ using Win32 with an object derived from standard window. I can see all the window properties like Name, WndCaption, etc. just fine in TestComplete. Something like this:
cap = Aliases.Offline_Main.MainWindow.InfoButton09.WndCaption
But in my derived class I have another class that holds data. I want this class to be available in TestComplete. Something like this:
cap = Aliases.Offline_Main.MainWindow.InfoButton09.Data.MyCaption
I don't know how to get it to map this "custom property". Is this even possible?
I would recommend to read https://support.smartbear.com/testcomplete/docs/app-testing/open-apps/index.html help section for details and talk to your developers to discuss if they can fit requirements.
/Alex [Community Champion]
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
So, I spent some time going through the OpenApplication docs and it all sounds very promising. It talks a lot about MFC and I'm wondering if that's required for C++ support? We're not using MFC, just pure Win32. I did change all my compiler settings as suggested and recompiled and I still don't see my member variables or classes.
I have a class that creates a window. The window it creates is seen by TestComplete but not the class that creates it. This is what I'm trying to see and map.
I'm still not totally understanding how to do this.