Descriptive programming in MainFrame Application

544 views
Skip to first unread message

Nikhil

unread,
Feb 7, 2011, 10:20:10 AM2/7/11
to mercu...@googlegroups.com, shel...@gmail.com, mgkg...@gmail.com

Try to use property like this also, I guess it will work

 

attached text:=Press\(protected\)

 

and why u r using description strings every time

u can use

 

Set TeWindObj =  TeWindow("protocol:=.*")

Set TeScreenObj = TeWindObj.TeScreen("label:=.*")

 

Ganesh if I am wrong then pls let me know ?

 

 

Thanks

Nikhil Gangwar

 

 

 

 

 

 

 

 

 

From: mercu...@googlegroups.com [mailto:mercu...@googlegroups.com] On Behalf Of mercuryqt...@googlegroups.com
Sent: Thursday, February 03, 2011 12:45 AM
To: Digest Recipients
Subject: Digest for mercu...@googlegroups.com - 4 Messages in 3 Topics

 

Group: http://groups.google.com/group/mercuryqtp/topics

Jimmie Parson <jpar...@gmail.com> Feb 02 07:12AM -0800 ^

 
To all
 
With some of your advice in mind and some further testing to see what
I could do I found a workable solution. Very simple like I figured I
was just to blind to see it. If I declare a variable like this
 
paramvalue = DataTable.GetSheet("output1").GetParameter("SEGMENT1")
 
 
and then just call the vaiable in my script in place of this
 
OracleFormWindow("Advanced
Pricing").OracleTabbedRegion("ListLines").OracleTable("LIST_LINES").EnterField
1, "Product
Value",DataTable.GetSheet("output1").GetParameter("Segment1").Value
 
everything works.
 
 
My main reason for this was my other working method involved creating
an excel sheet for each test so I could export the data then return
the data by calling the created excel workbook.
 
 
This eliminates all that work and should work for all 1200+ scripts I
am working on.
 
 
Once again thanks for the input I do appreciate it.
 
 
Jim
 
 

 

Shell <shel...@gmail.com> Feb 01 12:36PM -0800 ^

 
Thank you Shirish. I checked the properties in the .net spy it has the
details.
 

 

Shell <shel...@gmail.com> Feb 01 12:11PM -0800 ^

 
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 <mgkg...@gmail.com> Feb 01 02:19PM -0600 ^

 
It could be because of the brackets () used in TransRef(protected) try to
put \
 
e.g. "attached text:=TransRef\(\protected\)\"
 
 
--
Regards,
 
 
Ganesh Muralidharan
'God Never Forgets'

 

--
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

Reply all
Reply to author
Forward
0 new messages