Highlighted
Absent Member.. vzamoraz Absent Member..
Absent Member..
615 views

QTP/UFT support tip: How to configure Terminal Emulator for text recognition

There are some cases where the user has a unsupported Terminal Emulators(TE) so the hllapi option is not able to works.

On this cases you can configure QTP/UFT in order to get text recognition on the TE.

 

 

Click on Tools>Options>Terminal Emulator

te1.jpg

Click on Open Wizard

 

In this Wizard click on next

te2.jpg

 

On this new window select “Configure a new User-defined”

te3.jpg

Then Click on next

 

You will see this new window

te4.jpg

Click on next here

te5.jpg

On this window you have to select Emulator does not support HLLAPI.

 

Click on Next

te6.jpg

In this window you have to click on each TE Window Part.

Example click on Main window class hand

te7.jpg

 

And then click on the main window of your TE

te8.jpg

Click on Text window class hand

te9.jpg

Click on Text Window Class

te10.jpg

And the same process for the other options (as you can see this one doesn't have toolbar and Status bar so you can point the main window class also on those, however for your TE you have to select the Status Bar and the Tool Bar)

te11.jpg

After that please check “Configure Emulator Screen”

te12.jpg

And click on Next

Then you will see the Emulator Screen Settings window

te13.jpg

 

And your TE will looks like this

te14.jpg

You have to use the controls of the Emulator Screen Settings window in order to set properly the character recognition.

 

After that click on next

In this last window check the Save settings

te15.jpg

And click on finish.

 

After that click on Apply

te16.jpg

 

After that If you use the object spy on the TE you will see the object.

te17.jpg

 

Remember that you can only use

Properties SetText() and GetText()

 

  • object.GetText ([TopRow], [LeftCol], [BottomRow], [RightCol])
  • object.SetText([ScreenRow],[ScreenCol],[Text])

 

Example:

TeWindow("TeWindow").TeTextScreen("TeTextScreen").GetText(1,1,1,10)

TeWindow("TeWindow").TeTextScreen("TeTextScreen").SetText(5,4,"text example")

 

 

 

HP support
If you find that this or any post resolves your issue, mark it as an accepted solution.


Note: The Opinions expressed in my post are mine alone, and do not reflect the opinions of my employer.No warranties express or implied for any answerd posted."

 

Labels (2)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.