UFT record and run script - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions) +--- Thread: UFT record and run script (/Thread-UFT-record-and-run-script) |
UFT record and run script - shivani - 12-27-2018 Hello There, As I am new to UFT, just recorded my first script, but when try to run the same its giving me error can someone suggest me solution for it. Please refer the script and error message copy below. Also, does the recorded script looks normal, as i don't see such script in any of the tutorial online. Thanks a ton..!! Script recorded using UFT systemUtil.Run "C:\Program Files (x86)\Micro Focus\Unified Functional Testing\samples\Flights Application\FlightsGUI.exe" Window("Micro Focus MyFlight Sample").Click 197,222 Window("Micro Focus MyFlight Sample").Type "john" Window("Micro Focus MyFlight Sample").Click 181,272 Window("Micro Focus MyFlight Sample").Type micShiftDwn + "HP" + micShiftUp Window("Micro Focus MyFlight Sample").Click 157,349 Window("Micro Focus MyFlight Sample_2").Close --------------------------------------------------------------------------------------------------------------------------------- Error Message Cannot identify the object "Micro Focus MyFlight Sample" (of class Window). Verify that this object's properties match an object currently displayed in your application. Line (2): "Window("Micro Focus MyFlight Sample").Click 197,222". Tip: If the objects in your application have changed, the Maintenance Run Mode can help you identify and update your steps and/or the objects in your repository. ----------------------------------------------------------------------------------------------------------------------------------- |