Reputation: 29
I am using UFT trial version software. I have added username object to object repository (Object spy- UI automation mode). Below is the UFT code
SystemUtil.Run "C:\Program Files (x86)\HP\Unified Functional Testing\samples\Flights Application\FlightsGUI"
Window("HP MyFlight Sample Application").WinEdit("agentName").Set "Username"
Below error i am getting
The test run cannot continue due to an unrecoverable error.
The "HP MyFlight Sample Application" object was not found in the Object Repository.
Check the Object Repository to confirm that the object exists or to find the correct name for the object.
Line (2): "Window("HP MyFlight Sample Application").WinEdit("agentName").Set "Username"".
Image- Object repository image
Please help!
Upvotes: 0
Views: 1551
Reputation: 188
1) You need to make sure that you have the object added to the object repository. You can check it quickly by typing window(, UFT will suggest the window names available in Object repository. Select the window object from there .This will also eliminate any additional typos which you might had.
2) Assuming that you downloaded the latest version of UFT, Flights GUI is now a WPF based application, so make sure that you have WPF addin selected before writing your tests or adding objects to repository.
3) I don't see .exe at the end of your application name, I don't know if that will cause any issues.
As everybody else suggested, if you can add the screenshot of your object repository, we should be able to help you.
Upvotes: 1