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: [email protected] [mailto:[email protected]] On
Behalf Of [email protected]
Sent: Thursday, February 03, 2011 12:45 AM
To: Digest Recipients
Subject: Digest for [email protected] - 4 Messages in 3 Topics

 

  Today's Topic Summary

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

*       Further runtime <>  datatable questions [1 Update]
*       .Object Method in QTP <>  [1 Update]
*       Descriptive programming <>  in MainFrame Application [2 Updates]

 Topic: Further runtime datatable questions
<http://groups.google.com/group/mercuryqtp/t/cec2e41332fdfd9> 

Jimmie Parson <[email protected]> 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").EnterFie
ld
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
 
 

 

 Topic: .Object Method in QTP
<http://groups.google.com/group/mercuryqtp/t/f341677a2e445bec> 

Shell <[email protected]> Feb 01 12:36PM -0800 ^ <> 

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

 

 Topic: Descriptive programming in MainFrame Application
<http://groups.google.com/group/mercuryqtp/t/68f621d2eabe6bf3> 

Shell <[email protected]> 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)").Get
ROProperty("text")
 
TeWindow("TeWindow").TeScreen("TeScreen").TeField("attached
text:=TransRef(protected)").GetROProperty("text")
 
Thanks
Shell

 

Ganesh muralidharan <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to