Welcome, Guest. Please login or register.
Login with username, password and session length

 
Advanced search

18120 Posts in 4741 Topics- by 31743 Members - Latest Member: suuraj
 

Pages: [1]   Go Down
Print
0 Members and 1 Guest are viewing this topic.
Author Topic: Object recognition    (Read 1038 times)
Clive Farrington
User
*
Offline Offline

Posts: 23


« on: October 25, 2007, 09:07:49 AM »

Great site Dani! I'm trying to make the move from Winrunner to QTP after working extensively with Winrunner for the last 5 years, the last 1.5 of which have been various attempts between hectic releases of our website to get our QTP infrastructure up and running. One of my biggest frustrations is object recognition in particular working with smart identification. As an example I'm currently trying to validate that a particular weblist is not displayed as the functionality it relates to should be disabled for the user I'm logged in as. Smart identification kicks in on playback and thinks that the listbox is now a different listbox that is always displayed. Should I just turn smart identification off for playback? I'm curious as to how much success users have with this feature.
Also QTP seems to come with such vanilla settings for object recognition and whilst I realize that no two websites will be coded the same, I think another great chapter for the QTP Manual would be how to best configure these recogition features to get the best from QTP. I find myself playing with these settings extensively an I'm not clear what the impact would be on existing scripts or the generation of new scripts.
Some of the questions I have are:
1. If I reconfigure the recognition for say a weblist, will that prevent previously recorded scripts from running?
2. If I turn off smart identification at the object level, why now is the object I just recorded against 2 mins before not found?
3. What's best practice for the settings in the page and frame options section for a website?
4. Why does my newly recorded object now appear in a 'window_2' window rather than the 'window' window with the rest of the objects on my page.
Logged
Dani Vainstein
Administrator
Advanced User
*****
Offline Offline

Posts: 623



« Reply #1 on: October 25, 2007, 02:01:12 PM »

 Huh?
Hi Klive

Thank you, we are working on make this site even better.
you have posted a large and complex question...
i think you have touch the "Gray" area of QTP.
i don't know if there is a formula a the right way to use Smart Identification feature, only the experience  talks.
when first i met "smart identification" i was confused. you have 3 places in qtp where you can enable/disable the feature ( object identification, repository and test settings ) this can be very confused to new programmers.
all the object identification mechanism is depend on the Object identification, Object repository, in the Web page/frame options. all the time you have to "play with those, until you find the best. as i said, no formula, is also very depending on the AUT , and what you want to do. so i can tell you what i do, i don't know if is the best, but it works for me. i am NOT using Smart identification at all, is disble everywhere. i want to be in controll on my AUT and script. smart identification is sometimes "too Smart" the evidence for that , is the problem you described "SI identifies List1 as List2".
my advice for you is to work with the following procedure :
1. use the Object repository and try to find the optimal way to identify your objects
2. after you decide, make the configuration on Object identification. DON'T forget to generate a script, especially if you run QTP on different machines.
3. on Page/frame options use always "different test object descriptions"

the bullet 4 of your question was produced based on Page/Frame options configuration.
i hope i helped you a little.
but again, the best way, is your way.
Logged

Best Regards,
Dani Vainstein
Mercury CPC

http://www.advancedqtp.com
Pages: [1]   Go Up
Print
Jump to: