Forum Discussion
YMinaev
Staff
14 years agoHi Mark,
If your application is not open, implementing additional properties in it won't be very helpful since TC will not be able to obtain them. If your application is developed in MFC (you mentioned C++), you need to create a debug build for tests to get object fields and methods which can help in your case, but if there's no way to do this (or if your application is of an unsupported type), black-box testing with only standard (added to all objects) properties and methods available is the only way to test it.
However, you can improve object recognition in this case too.
First, you can enable Text Recognition which will make TC able to get text drawn on controls. This way, you can recognize objects by their text, and this helps if you, for example, have a control where you need to reference some items not available as individual objects.
Also, try MSAA. If should expose more objects and make their contents accessible.
If you have a control whose contents you cannot identify in tests, but this control is similar to a standard Win32 one (like an edit box whose text you cannot get), you can add its window class to object mapping settings.
If your application is not open, implementing additional properties in it won't be very helpful since TC will not be able to obtain them. If your application is developed in MFC (you mentioned C++), you need to create a debug build for tests to get object fields and methods which can help in your case, but if there's no way to do this (or if your application is of an unsupported type), black-box testing with only standard (added to all objects) properties and methods available is the only way to test it.
However, you can improve object recognition in this case too.
First, you can enable Text Recognition which will make TC able to get text drawn on controls. This way, you can recognize objects by their text, and this helps if you, for example, have a control where you need to reference some items not available as individual objects.
Also, try MSAA. If should expose more objects and make their contents accessible.
If you have a control whose contents you cannot identify in tests, but this control is similar to a standard Win32 one (like an edit box whose text you cannot get), you can add its window class to object mapping settings.