Tell about descriptive programing in qtp8.2?
Answers were Sorted based on User's Feedback
Answer / vishu
Descriptive Programming is all about identifying an object
uniquely. And there is no defined frame work for it. Frame
work depends on the project.
This is the code for Yahoo Photos Website you can do the
same for the yahoo by changing the values in the required
places.
CODE: Browser("title:=Yahoo! Photos*.*").page
("title:=Yahoo! Photos*.*").WebEdit
("name:=login").set "srinivas"
Browser("title:=Yahoo! Photos*.*").page("title:=Yahoo!
Photos*.*").WebEdit("name:=passwd").set "test"
Browser("title:=Yahoo! Photos*.*").page("title:=Yahoo!
Photos*.*").WebButton("name:=Sign In").click
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sravanthi
If the description of the object specified in the program
itself can be called as descriptive program.Using this we
can execute test script without entries in the OR
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / girish
hay ur example on yahoo photos was really a an excellent
one i am actually new to descriptive prograimng if possible
can u send me some more examples or any related stuuf to
my mail id please at tatabirla84@yahoo.co.in
thanks in advance
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / 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 |
Pls let me know how to find out creation time and index for the web application in descriptive programming?
When it be decided to go for either Per - Action or Shared?
In QTP whether is it possible to call a function from one action to another action?
can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks
You say it is a bug but developer say it is not a bug then what will you do?
7 Answers Hewitt, Tech Mahindra,
How to map Test cases to the script? Please do anwser urgently?Thanks
how to check URL using QTP? write vb script with descriptive programm only?
What is Virtual Users?
Hi, My application is a web application which was developed by Java. In that application we have applets to do some operations. Is it possible to recognize applets using QTP? If yes, how? pls, help me this
Hi All, we are using QTP Automation Scripts to test SAP. I recorded QTP Automation Scripts in English-based SAP GUI. Now we have to test a French-based SAP sytem and use the same scripts. The QTP scripts are failing when executed on the French-based SAP System due to Object Recognition Issues. What can we do? Do I re-record the scripts in the French-based SAP system?
Apart from VB script What are the fundamental criteria to gain the knowledge to write QTP script without OR and recording ?
if full in Object Repostoiory then how to load other Object Repository