I am using TE with IBM PCOM5.5 emulation. I have successfully set some inputs and checked some outputs.
I am having a problem with TEField object protected fields recognition.
My application processes Insurance quotes.
When I search for a quote ABC123456, a screen is displayed which has:
Quote Ref: ABC123456
I need to check the field contains ABC123456 i.e that the quote I searched for was successfully retrieved.
When I try View/Add object on the field ABC123456 in ActiveScreen, it displays it as 'protected' and uses the "ABC123456" as the attached text. It detects no other properties.
As the field contents are variable, I tried to remove the attached text and id the object using its Col & Row values which are fixed, but QTP then fails to recognise the object.
I would ideally like to have this field recognised using the attached text "Quote Ref:" (this is how it works for unprotected fields) but this is sees as a different field by QTP.
I have limited success in using the ABC(.*) regex to match attached text, but not all quotes start with ABC, so it's of limited use.
Do you pick the insurance quote ids from the datatable??
If so, u could parameterise the attached text property in the OR to use this value to recognize the object.
then use .Exist to verify the correct quote is pulled up.
'Get Text from screen area
'Call GlobalText ("MultiAppWindow",2,2,2, 8,"Destination")
'strColName is the name of the column in the Datatable
Public Sub GlobalText (strTEScreen,TopRow,LeftCol,BottomRow,RightCol,str ColName)
On Error Resume Next