Please take in consideration the following: “On Windows Vista, 7 or 2008 operating system (32bits or 64bits), QuickTest Professional (QTP) 9.X or higher version's text recognition features (such as text checkpoints and output values, GetVisibleText and GetTextLocation test object methods, and TextUtil.GetText and TextUtil.GetTextLocation reserved object methods) are limited and are not always reliable”.
The information above was taken from KB article below, please check it for more details and some approaches to workaround this known issue:
- Text recognition operations on Windows Vista, 7 or 2008 are not always reliable: http://support.openview.hp.com/selfsolve/document/KM202724
Also, you might want to check the documentation below for more alternatives:
- QTP's Text Recognition functionality is not working as expected: http://support.openview.hp.com/selfsolve/document/KM195520
- From QTP Help: HP QuickTest Professional User Guide > Enhancing Tests > Text Recognition for Windows-Based Objects > Guidelines for Text Recognition.
As mentioned above Windows 7 text recognition is unreliable. As an approach, you can try to use instead: “Standard Checkpoints” or the “GetTOProperty”.
Also, we already have created an Enhancement Request to R&D department and it was successfully submitted, its ID is QCCR1J30199 you can track its progress in the below link:
- New Text Recognition logic for Windows Vista, 7 and 2008 (possibly Windows 8) - http://support.openview.hp.com/selfsolve/document/FID/DOCUMENTUM_QCCR1J30199
Hope this helps.