When should we use descriptive programming in UFT?

devquora
devquora

Posted On: Feb 22, 2018

 

UFT identifies objects through either object repository or descriptive programming. These are the following scenarios in which descriptive programming can be used:

a) Used to remove duplicate objects. In different screens or windows of the application the same objects exist. If OR is used in this case you have to store the same object under different object hierarchy in OR. Descriptive programming is used to deal with these situations.

b) To store objects in OR(Object repository) is not appropriate in certain situations. For example, if you want to print 1000 links on the page, you should not store all the links in the object repository, you should instead use descriptive programming.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    UFT Interview Questions

    How many types of recording modes are there in UFT? Which will be used when?

    There are 3 types of recording modes in UTF:Normal Recording mode or contextual recording mode Low-level recording mode Analog recording modeNormal or contextual recording mode: Normal recor...

    UFT Interview Questions

    What are Virtual Objects?

    There are objects in the application that behave like standard objects but are not recognized by UFT, these objects are Virtual objects, these objects can be mapped to the standard classes, such as a ...

    UFT Interview Questions

    What is the logical name of the object?

    When UFT creates an object in the repository, it gives it a name to it to uniquely identify it from other objects in the application, this name is known as the logical name of the object. UFT uses thi...