Descriptive programming - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Descriptive programming (/Thread-Descriptive-programming--5683) |
Descriptive programming - s_shiva - 11-23-2011 my question is firstly i recorded the script, then tried to convert it into the DP .if all the objects are converted using Dp it is working fine Code: Browser("title:=Google").Page("title:=Google").[size=x-large]WebEdit("name:=q")[/size].Set "shiva" but if parent objects are converted using Dp and child objects are not converted using DP then it is not working may i know the reason why it so? Code: Browser("title:=Google").Page("title:=Google").[size=x-large]WebEdit("q")[/size].Set "shiva" RE: Descriptive programming - Ankesh - 11-23-2011 Hi Shiva, Please read the "Hierarchy of test description:" section on the below page https://www.learnqtp.com/descriptive-programming-simplified/ feel free to ask if you have any query. Regards, Ankesh RE: Descriptive programming - s_shiva - 11-23-2011 thanx Ankesh : my problem is solved , but my next query is whether each and every test object has separate index properties, and how they are searched at the run time. Thanks shiva RE: Descriptive programming - Ankesh - 11-23-2011 Shiva, As per my understanding, index is the TO property which we use when we have similar objects on the page. You can add index property to an object via the property window of OR. Some time we use index proerty to idendify the object incase object found more than one with same property. So before adding index property we have to understand that is this property realy required or not because incase if an object (unique in application) and you add index property for that it increase the time to identified the object. Plz revert in case of any query. Regards, Ankesh |