Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP can not recognise objects on new sessions
#1
Solved: 11 Years, 4 Months, 4 Weeks ago
I am using Web, ActiveX and Terminal emulator for my test.
I have two main problems:
1.) When I run my test on a new cics session the recorded test case can not find the object TeScreen("screen28888").TeField("field167") etc. on a new cics session but no problem on already opened. the screen and field no. are dynamic and get changed with each new CICS session.

2.) I have the same problem with my web test as name of our portal web changes every time you open a new internet browser and QTP can not find the already recorded object.

There is no problem if I run the recorded test on already opened host terminal or web session where I recorded the test.

How do I solve this problem?
Reply
#2
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi,

Regular Expressions of QTP can resolve your problems. The following LOC may give an idea about the RegEx.

Code:
Browser("name: .*Yahoo!.*" "title: .*Yahoo!.*").Page("title: .*Yahoo!.*").WebTable("name: login").WebEdit("name: login").Set "XYZ"

Thanks,
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Object doesnot recognise lakshmikanth 0 1,138 12-18-2017, 04:10 PM
Last Post: lakshmikanth
  QTP does not recognise elements randomly Pkapoor 2 2,683 07-05-2013, 11:27 AM
Last Post: Pkapoor
  QTP recording web objects as windows objects Ansh123 6 5,774 11-30-2012, 08:38 PM
Last Post: Ansh123
  QTP recognizes web objects as win objects kalyani0820@gmail.com 4 19,102 04-14-2012, 10:41 AM
Last Post: kuks
  QTP cannot recognise WpfGrid and Wpfcombobox korsar01 0 3,789 12-06-2010, 05:34 PM
Last Post: korsar01

Forum Jump:


Users browsing this thread: 1 Guest(s)