Micro Focus QTP (UFT) Forums
Object Repository and Discriptive Programing combination - 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: Object Repository and Discriptive Programing combination (/Thread-Object-Repository-and-Discriptive-Programing-combination)



Object Repository and Discriptive Programing combination - raaj123 - 05-22-2012

hi,

Object Repository and Discriptive Programing combination is work or not ?

when i am trying am getting Expected end of statement validation for that Descriptive line.

Regards,
Praveen Raaj.


RE: Object Repository and Discriptive Programing combination - Ankesh - 05-22-2012

Praveen,

DP and OR can work together in combination with some limitations.

Suppose you are writing a code like..
Code:
Browser("BrowserName").Page("PageName").WebEdit("ORLogicalName").Set "xyz"

Once you start using DP in the statment, the rest of the hierarchy should also be in DP, you can not use OR for them.

'Below code will work
Browser("BrowserName").Page("PageName").WebEdit("name:=xyz").Set "xyz"

'where as the below code will not work as for browser and page we have 'use DP so the rest of the hierarchy should alos use dp, u can not 'use OR for them.

Browser("title:=BrwTitle").Page("title:=PageTitle").WebEdit("ORLogicalName").Set "xyz"
Let me know if you need further clarification.

Regards,
Ankesh