I have a script that takes over 2 minutes to identify an object. The object is eventually identified without the assistance of smart identification, so I think the attributes are correct for the object.
Any ideas of how to speed this up?
Find out the most unique property for this object, go to the object repository and remove all other identification criterion that other objects could possibly have.
Better still, use descriptive programming instead of relying on the OR. This is especially true if your object is an image. Use the index property.
2 mins does seem like a very long time. What exactly is the object?
(I'm hiring Software Development Engineers in Test in Seattle, WA)
The object is just an OK button. Nothing too fancy.
Descriptive programming? How do you identify an object in this manner?
This should work for your problem..try it ..
just add this after every click of a page
For a Webutton:
For a security popup:
Browser("micClass:=Browser").Dialog("regexpwndtitl e:=Security Alert").WinButton("regexpwndtitle:=&OK").Click
My linkedIn Profile
This is my current code:
still take 2 minutes +-
Alpha try this:
Go To Test > Settings > Run and set Object Synchronisation Timeout to 5000 (milliseconds) and check the "disable smart identification"
Now replace your current code with:
(may have to use the following, without access to your app I can't tell):
Let me know if this works, Mark Smith.
Thanks for the suggestion Mark:
When I try the code you outlined above, teh object isn't recognized, and in the keyword view, teh object is identified with the ? meaning it isn't in the repository.
Descriptive Programming like this doesn't use the object repository.
Use the object spy on the WebButton and verify which property contains the "OK" it may not be name as I suggested it may be value:=OK
QTP will wait for timeout period if the object is not recognised or found in OR. The synchronization timeout shouldn't matter thereby.
You could try with descriptive programming.