Friday, December 27, 2013

Configure Terminal Emulator in UFT / QTP [with(out) HLLAPI]

Configure Terminal Emulator in UFT / QTP

Configure the Terminal Emulator add-in for the correct emulator application being used, To configure the Terminal Emulator add-in:
1. Go to Tools -> Options -> Terminal Emulator tab.
2. Select the correct emulator application that you are using. If your emulator is not listed, select the New/Modify button and follow the steps in the Terminal Emulator Configuration Wizard.

Emulator NOT supports HLLAPI
From QTP's Options, create a new setting for the terminal emulator being used, Follow the instructions below if your terminal emulator NOT uses HLLAPI.
1. Start the emulator and connect to the server.
2. Go to Tools -> Options.
3. Select the Terminal Emulator tab.
4. Click <New/Modify> (<Open Wizard> for QTP 9.5 / UFT). The Terminal Emulator Configuration Wizard will appear.
5. Click <Next>.
6. Select the "Configure a new user-defined setting" radio button.
7. Enter in the name of your emulator.
8. Click <Next>.
9. Click <Next>.
10. Select the "Emulator does not support HLLAPI" radio button.
11. Click <Next>.
12. Now we need to point out the different screen components of the emulator window to QTP. Click the “hand” button for each one and then click the area of the window that you want to register. You should enabled the checkbox configure the emulator screen Click Next.
13. Mark Text Area – Terminal Emulator
14. Save the terminal emulator settings into file for use by other computers.
15. Finish button


Emulator supports HLLAPI

From QTP's Options, create a new setting for the terminal emulator being used, Follow the instructions below if your terminal emulator uses HLLAPI.
1. Start the emulator and connect to the server. Verify that you have set a short name for the emulator session that you have open. Please refer to your terminal emulator's documentation for instructions on how to do this.
2. Go to Tools -> Options.
3. Select the Terminal Emulator tab.
4. Click <New/Modify> (<Open Wizard> for QTP 9.5 and later). The Terminal Emulator Configuration Wizard will appear.
5. Click <Next>.
6. Select the "Configure a new user-defined setting" radio button.
7. Enter in the name of your emulator.
8. Click <Next>.
9. Click <Next>.
10. Select the "Emulator supports HLLAPI" radio button.
a. Either enter in the path or browse to the HLLAPI DLL. The DLL normally resides in the terminal emulator installation folder and is generally named ehllapi32.dll, whllapi32.dll, or ehllapi.dll.
b. Enter the HLLAPI procedure name.
c. Select the HLLAPI format. It is recommended you select "Auto-detect." If, in the next screen, QuickTest Professional is unable to capture the text in your emulator, click <Back> and change your selection to either "Classic" or "Extended.
Note:
Use "Text-only" if QuickTest Professional encounters recording and replay problems.
11. Click <Next>.
12. If QuickTest Professional is able to successfully identify the terminal emulator screen, you will see a screen capture in the HLLAPI Configuration Test Screen.
If you do not, try these trouble-shooting steps:
a. Verify your emulator is connected to the host and the short name is set.
b. Check that your HLLAPI property settings are correct (dll path, procedure, format).
c. Change the HLLAPI format to "Text-only".
d. Select "Emulator does not support HLLAPI" if all the above tips have failed.
13. Click <Next>.
14. You can save the settings that you have configured to a separate file so that other users can copy the terminal emulator configuration settings.
15. Click <Finish>.




No comments:

Post a Comment