Friday, July 18, 2008

Is there a way to change the method QTP 9.2 uses for text recognition

By default, QTP (QTP) 9.2 uses Windows API first, then OCR, for text recognition operations.
QTP 9.2 introduced a new text recognition mechanism. The information provided here applies to QTP 9.2 or higher. This solution is not available for earlier versions of QTP.
1. Open the registry editor. (Windows + Run -> regedit)
2. Navigate to HKEY_CURRENT_USER\SOFTWARE\Mercury Interactive\QTP\MicTest\OcrEngine.
3. Right-click on the mode value, and select "Modify."
4. Set the value data for the mode you want to use:

0 - No OCR. Instructs QTP to use only the Windows API-based mechanism (and not the OCR mechanism) to retrieve text from the object.
1 - Windows API/OCR. Instructs QTP to first try to retrieve text directly from the object using the Windows API-based mechanism. If no text can be retrieved, QTP tries to retrieve text using the OCR mechanism. (Default) (Highly recommended when working with CJK languages.)
2 - OCR/Windows API. Instructs QTP to first try to retrieve text from the object using the OCR mechanism. If no text can be retrieved, then QTP uses its Windows API-based mechanism to retrieve text from the object.
3 - OCR only. Instructs QTP to use only the OCR mechanism (and not the Windows API-based mechanism) to retrieve text from the object. (Required when working with Windows Vista.)

5. Click .
6. Restart QTP.

2 comments:

Unknown said...

I was working on this to get rid of windows dependency and finally got the solution. Please check below link for complete solution without depending on any platform

http://qtpissues.blogspot.com/2013/03/alternative-to-getvisibletext-function.html

Unknown said...

We've various HTTP status rules that are employed for different uses
You can find cases wherever we've noticed image filling is failed because of numerous reasons, the most view is INCHESImage not loading - DidN't fill the granted URL” as a result of impression record is not positioned in precisely the same place as that is specified or might be image report is corrupted
. For more info on this visit here