Tell about descriptive programing in qtp8.2?

Answer Posted / imran sheikh

Objects in QTP are recognized by it's properties. When
object cannnot be recorded in OR or cannot be added in OR
due to some reason, we can identify an object by
Descriptive Programming. Small example of web application
which make DP clear is: Suppose there is a link which is
phone number, everytime we log-in with different user phone
link is changed. if we want to click the phone number we
cannot create it's object in repository because OR will
capture the present phone number,next time with second user
it's phone number link will not be clicked.To do that:

Set phoneLink = Description.Create
phoneLink("html tag").value = "Link"
phoneLink("name").value = DataTable.value("phone")
Browser(brw).Page(pg).Link(phoneLink).click

Here 'html tag' and 'name' are property whose value you can
confirm from Spy. If value of phone is there in DataTable
you can use as specified, else you can use regular
expression.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you identify the browser and its information using QTP script?

554


How does quicktest professional identifies the object in the application?

559


Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations

1777


Which is the best QTP training institute in Delhi/NCR region and what is the approximate fee for QTP course (Basics and Advanced)

1387


What are the challenges you faced during you entire life automation ?

1014






How does qtp recognize objects in aut?

596


Can we create a qtp test from qc?

593


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.

537


what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?

1384


Tell me one scenario, the complex functionality you have automated in your project?

1487


after initiating one project for testing, when exacltly QTP tester role starts?

1413


Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?

563


i am looking job in perfomance testing using Loadrunner any one help me a project plz......?(Chandana) chs_29@rediffmail.com

1482


Explain the concept of object repository and how QTP recognizes objects?

555


What is the use of ordinal identifier in qtp?

610