Quality is delighting customers
Hi Friends,
i am new to qtp,i am getting some confusion abt this
while Recording Time qtp identified the objects and store in object repository ,
while doing descriptive Methodology we create the description for the objects,so need for object identification and object repository .
i am getting some confusion about object identification.. (Why assistive ,Mandatory,smart identification and ordinal identifier)
Fayaz....
Tags:
Permalink Reply by SSharma on June 20, 2012 at 2:37pm During descriptive programming... RO will not come in picture.
DP is Independence of RO.
But, if you are storing your object's in RO then at the time of recording "assistive ,Mandatory,smart identification and ordinal identifier" use to distinguish objects and uniquely store in RO.
Permalink Reply by Subbu on June 20, 2012 at 3:39pm QTP will identify objects using properties and its values.
QTP provides two ways for this.
1. Object Repository (we generally cal OR)
2. Descriptive Programming (DP)
In OR first preference goes to Mandatory, if qtp not able to identify object uniquely then it try with assistive, ordinal identifier, smart identification (respectively).
You can also make qtp identify object using DP, just write all required properties in a single line and identify it.
Example for DP:
Browser("title:=Google", "creationtime:=0").Highlight
In above example title is mandatory property and creationtime is ordinal identifier.
I hope you understand it.
--Subbu.
Permalink Reply by fayazkhan on June 20, 2012 at 3:55pm Thanq Subbu . But Expecting Some more Examples.
Permalink Reply by Subbu on June 20, 2012 at 5:35pm You have to practice.
Install QTP and play around any website (like google, rediff, irctc)
Permalink Reply by Shawn LoPorto on June 20, 2012 at 10:01pm These are completely different concepts. Object Identification is used specifically with the Object Repository. It is simply the definition of what properties QTP will use when trying to identify a specific object type and what will get stored in the Physical Description of the object within the Object Repository. It is used only during Recording. This is an important concept to understand but it's better to learn from a class, not on a blog post since there's a lot to it.
Descriptive Programming completely bypasses the Object Repository, so it does not use the Object Identification and therefore the Object Identification does not apply at all to Descriptive Programming.
Shawn
www.asi-test.com
Online Training Classes Available:
- Learn QTP
- Learn VBScript for QTP
- QTP Advance Series - Part 1 (almost complete)
Permalink Reply by kotla lakshmi kanth reddy on June 20, 2012 at 11:24pm Object Identification: When you record an operation on a object,,it learns the set of properties and values ,which is sufficient to identify the object,in most cases this description is sufficient to identify the object during run session.Quick test also have predefined properties for object identification like Mandatory,Assistive,and also quick test uses a back up Ordinal identifier for object identification and in some cases quicktest also uses smart identification which has two properties like Base filter and Optional filter properties for object identification...
Descriptive programming: In some cases we can make use of DP,,for dynamically changing objects where quicktest unable to identify the object,,for instance you have developed test with large amount of code,and saved it..
in future ,,if objects might change,then DP play a vital role..
Permalink Reply by durga on June 22, 2012 at 10:58am For example when two or more objects have same properties it is difficult for qtp to identify the object so we will go for object identification
Permalink Reply by kotla lakshmi kanth reddy on June 22, 2012 at 11:43am well durga,,, if the objects have the same properties,then qtp will make use of ordinal identifiers like we have three types of ordinal identifiers like index,location ,and creation time ,,,,based on these identifiers qtp will identify the object...
Manager QA at IdeaS Revenue Optimization
© 2013 Created by Quality Testing.