Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help modifying a recorded QTP script?
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi - My web application is pretty simple. Login and click an order number. I recorded below script for Order# 434500. When I try to change the script for a different order number(434501) it does not work (complains The "434501" Link Object was not found in the Object Repository. Check the Object Property to confirm that the object exists or to find the correct name for the object)...

Could someone help me? The only thing I changed in the below script is "change 434500 to 434501"..That's it...

Code:
Browser("Acme - Welcome").Page("Acme - Welcome").WebEdit("uid").Set "qauser"
Browser("Acme - Welcome").Page("Orders 3.0 - Welcome").WebEdit("pwd").Set "password"
Browser("Acme - Welcome").Page("Orders - Welcome").WebEdit("pwd").Submit
Browser("Acme - Welcome").Page("Orders").Link("Orders").Click
Browser("Acme - Welcome").Page("Acme • Orders_2").Link("434500").Click
Browser("Acme - Welcome").Page("Acme • Orders_3").Link("Logout").Click
Browser("Acme - Welcome").Page("Acme - Welcome_2").Sync
Browser("Acme - Welcome").Close[hr]
BTW, I am changing the above order in Expert View (eventhough I am not the expert Smile )
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Only change the code in expert view is not enough, you need to change the corresponding repository from 434500 to 434501.
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
better regularise it to work it for any order that you get there. serach this forum to know more on 'Regular Expression'

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  SystemUtil.Run is not getting recorded divyan 1 1,804 08-31-2017, 09:06 PM
Last Post: Ankur
  SystemUtil.Run method is not getting recorded pupuns2 5 8,154 05-12-2017, 01:20 PM
Last Post: Angeliks
  Path of Flight reservation Window is not recorded in HP UFT 12.52 version mailtokopalverma@gmail.com 1 2,697 04-01-2016, 05:34 PM
Last Post: vinod123
  IE started as Adminstrator is not recorded by UFT v. 11,5 Pandochka13 0 1,950 06-20-2014, 08:14 PM
Last Post: Pandochka13
  Recorded script doen't play after restarting the application in qtp ashima 1 1,977 12-26-2013, 11:41 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)