We are using QTP-8.2 with Terminal Emulator Add-in for testing the RUMBA ver7.4 application. Configured TE settings using HLLAPI. I am able to capture the Tewindow, Screen & fields in object repositry. But while recording QTP is not recognizing as Terminal Emulator.
Sample of recorded script
Window("RUMBA Mainframe Display").WinObject("AfxOleControl42").Click 97,58
Can anyone tell how to record the script to get all TE functions?
I went through the link provided.
AUT is RUMBA application, I have set the short session name as 'A' and followed the steps given in "Configuring Your Terminal Emulator Settings" in TE User Guide. When we add objects using object repositry/ use Object spy QTP is able to recognize in terms of TeWindow, TeScreen and Tefield. That means settings are fine, right.
But while recording QTP is not recognizing as Terminal Emulator.
I took the bait and looked for this item on Mercury Support.
I'm not finding anything, and I think I have an idea of what I'm looking for, I think a real newbie would be stuck.
I don't think that the Search in the KB works properly. I saw a response you gave on a discussion thread that directed someone to search the KB on "TE gettext" so I turned around to check that to see what they would have come up with and I got nothing. Nothing in either KB forum.
I agree that newbies need to dig deeper for themselves, I'm guilty myself of having a post-first-search-while-waiting moment. But I also think that there are problems with the Mercury site (at least right now) that make it impossible to find these things.
Results 1 - 99 of 300 for "TE settings" based on a 1 year span.
When I search for a topic I try a number of variations. But so far the thing that I have got the most info from is the QTP Help file, people realy seems to underestimate the value of the help files in QTP.
I understand that for many people on this forum that english isn't their first language and technical documents can be hard to read but if they can post and read in english here then a little effort in the help file would return great value.
I went thro' all the links related to TE Settings posted in QAForums.
You mentioned about "session document associated to A" I didn't find any session document. The Emulator I am using is Rumba.
The generated script
Dim App 'As Application
Set App = CreateObject("QuickTest.Application")
App.Visible = True
App.Options.DisableVORecognition = False
App.Options.AutoGenerateWith = False
App.Options.WithGenerationLevel = 2
App.Options.TimeToActivateWinAfterPoint = 500
App.Options.SaveLoadAndMonitorData = True
App.Options.Run.RunMode = "Normal"
App.Options.Run.ViewResults = True
App.Options.Run.CaptureForTestResults = "OnError"
App.Options.TE.CurrentEmulator = "Rumba 7.4.0"
App.Options.TE.Protocol = "autodetect"
App.Options.TE.AutoAdvance = 1
App.Options.TE.CodePage = 0
App.Options.TE.HllapiDllName = "C:\Program Files\NetManage\RUMBA\System\ehlapi32.Dll"
App.Options.TE.HllapiProcName = "hllapi"
App.Options.TE.VerifyHllapiDllPath = 1
App.Options.TE.AutoSyncKeys = "13"
App.Options.TE.RecordMenusAndPopups = 1
App.Options.TE.RecordCursorPosition = 1
App.Options.TE.TrailingMode = 1
App.Options.TE.TrailingFieldLength = 5
App.Options.TE.UsePropertyPattern = 1
App.Options.TE.PropertyPatternsFile = "C:\Program Files\Mercury Interactive\QuickTest Professional\Dat\PropertyPatternConfigTE.xml"
App.Options.TE.SyncTime = 200
App.Options.TE.ScreenTitleRow = "1"
App.Options.TE.ScreenTitleCol = "1"
App.Options.TE.ScreenTitleLength = "30"
App.Options.TE.BeepOnSync = 1
App.Options.WindowsApps.AttachedTextRadius = 35
App.Options.WindowsApps.AttachedTextArea = "TopLeft"
App.Options.WindowsApps.ExpandMenuToRetrieveProper ties = True
App.Options.WindowsApps.NonUniqueListItemRecordMod e = "ByName"
App.Options.WindowsApps.RecordOwnerDrawnButtonAs = "PushButtons"
App.Options.WindowsApps.ForceEnumChildWindows = 0
App.Options.WindowsApps.ClickEditBeforeSetText = 0
App.Options.WindowsApps.VerifyMenuInitEvent = 1
I am able to capture all the objects in terms of te in Object repository by "adding objects". My problem is while recording on emulator nothing is getting recorded except below mentioned few lines.