Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is accessibility check point?

1044


hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.

2318


What r the different filters in defect in quality center

3712


Explain measuring transaction.

1002


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

1968


What is the use of text output value in quicktest professional (qtp)?

1008


What are the different ways to invoke an application using QTP?

1129


Why is Client side image is preferred over server side image?

1863


What are the differences between table and db checkpoints?

980


Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..

4859


I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?

1153


what is review

2109


How you are developing the script? Using record and play back or manual?

1020


How do you convert manual test cases to automated test cases?

1062


In what occasion we can specify global sheet and action sheet?

997