I keep seeing the confusion all the time over this topic. I recommend you to subscribe by email below and have new UFT articles sent directly to your inbox. QTP will first go for the mandatory and then assistive. If both these do not identify the object uniquely then approach is SI.
The SI has 2 types namely base filter and optional filter. Then lastly come the Ordinal identifier. I have NO Object Repository, and never have to deal with descriptive programming. If I was using QTP to fill this form it would literally be:. I have two questions on Object identification one for runtime from application and other for QTP reference for Object Repository. Please describe? Question 2: While Recording One more question is regarding the learning of Objects for the first time while recording for Object repository.
While recording if the Object is not recognised uniquely by the configured Mandate and Assistive properties then what does QTP do? Regards, Naveen, naveen. Its my experience that while creating the test scripts, we should not use SI. But, while running those scripts, we can enable the SI. Important point here is, one should make sure by checking the results, every time you run the scripts that, no object has been identified using the SI.
Incase any object in the AUT is identified using SI, immediately you need to check the properties of that object and make sure if QTP has identified any incorrect object. If not, you need to make a note of those extra or assistive properties which QTP has used through SI to identify the required object and update the OR. If you take these precautions, SI become very useful in executing your scripts in a smooth way and also help you in identifying any changes made to the objects in the AUT, in a simple manner.
Please correct me if you find anything contradictory in my explanation. Ramakrishna I agree your comments. I think we should always make Smart Identifiacation as False in the Object Repository for that field. I just want to give one example for this scenario where i faced a problem with Smart Identification. In the web site which i used for tesing, there is one field present and was added to object repository with smart Identification as True, here i am testing for field excistence.
In one intermediate release they have removed this field from the website, when i ran the automated test the check point was passed because smart identification was enabled. When i made smart identification as False then it is working as Expected.
In fact i never liked to use Smart Identification, I always try to turn it off while running the script. This setting may cause you to start QTP on a machine and mistakenly assume that all of the correct add-ins have been chosen. Also make sure QTP is started before the application under test. Research the issue. Again, this may seem obvious, but a surprising number of people fail to do this.
I'm sometimes hailed as an automation genius by fixing something that an engineer may have been struggling with for days, based on information I found in the KB. Do me a favor — don't be that guy or gal! Check the KB. Object try as many operations as possible—even ones that may not seem remotely relevant to the action you want to perform.
NET grid. After spying on the object and trying several different methods that sounded promising, I ended up trying an odd one, called GetViewStyleInfo, and surprisingly it worked! Object method. The list is divided into. Skip to content. Report a Bug. Previous Prev. Next Continue. Home Testing Expand child menu Expand. SAP Expand child menu Expand. Web Expand child menu Expand. Must Learn Expand child menu Expand.
0コメント