Forum Discussion
GBrg :
Hi Gerard,
> unless RTTI or external Debug has been enabled
If debug information for C/C++ application is absent then TestComplete can access only those objects (windows) that are exposed by the operating system. The same windows can be seen in, say, Spy++.
With debug information been accessible, TestComplete can access internal objects of the tested application much like debugger does.
Depending on the given tested application, the following options are possible in case debug information is absent:
-- Use keyboard shortcuts to trigger this or that function and/or activate this or that field/control (e.g.: <mainWindow>.Keys('^S') to call Save As dialog);
-- Image-based testing;
-- Coordinate-based testing;
-- Text recognition technology (https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/text-recognition/about.html).
Hi Alex;
Thank you for your suggestion here, it does look much more promising.
I have now got visualisations when doing the record and after 'playing' with the pixel settings it can detect the text on the button presses.
I know there is a wealth of documentation to explorer, but is there a way to 'auto discover' buttons and flows using text recognition this way?
Thanks again!
Hi Gerard,
> it can detect the text on the button presses.
These are good news.
> is there a way to 'auto discover' buttons
I am afraid no... As per documentation, you must specify parent object (window) and the text you are looking for.
One more option is Optical Character Recognition (OCR), but it requires additional licensing. Nevertheless, you may read documentation and then consider whether it is worth trying.