Descriptive programming in MainFrame Application

112 views
Skip to first unread message

Shell

unread,
Feb 1, 2011, 3:11:57 PM2/1/11
to QTP - HP Quick Test Professional - Automated Software Testing
Hi,

I am working on a Mainframe application and trying the descriptive
programming on it. For some reason, it is not working. Here is what I
am trying

When I add the field to the repository with only the attached text
property, it is working fine however when I am trying to use the
descriptive programming it is not working. I am getting the error
"cannot identify the object"

TeWindow("TeWindow").TeScreen("TeScreen").TeField("TransRef(protected)").GetROProperty("text")

TeWindow("TeWindow").TeScreen("TeScreen").TeField("attached
text:=TransRef(protected)").GetROProperty("text")

Thanks
Shell

Ganesh muralidharan

unread,
Feb 1, 2011, 3:19:20 PM2/1/11
to mercu...@googlegroups.com
It could be because of the brackets () used in TransRef(protected) try to put \ 

e.g. "attached text:=TransRef\(\protected\)\"

--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en



--
Regards,


Ganesh Muralidharan
'God Never Forgets'
Reply all
Reply to author
Forward
0 new messages