Tell about descriptive programing in qtp8.2?

Answers were Sorted based on User's Feedback



Tell about descriptive programing in qtp8.2?..

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

Tell about descriptive programing in qtp8.2?..

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

Tell about descriptive programing in qtp8.2?..

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

Tell about descriptive programing in qtp8.2?..

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

Post New Answer

More QTP Interview Questions

Can anyone help.i need total excelsheet operations,shortcuts in testing environment from starting onwards....

0 Answers  


what will be the stmt if record any edit box in the Web application ?

2 Answers   eSymbiosis,


Can you write User defined function for WebEdit ? Note1: This function can be used for all web edits in all pages Note2: Don't use Child objects method

1 Answers   IBM,


What are the different types of action?

0 Answers  


is it possible to operate(on/off)the capslock using qtp

2 Answers  


What is a Run Time Data table?

1 Answers  


If there are 10 notepads opened on desktop. how can we close a particular 2nd notepad using script

3 Answers  


Hi, When I click on a hyperlink a secondary pop-window will open. In that pop-up window there will be 'N' number of records arranged in with paging option in datagrid table. Each rows contains two columns, one is text and the other is a radio button. I will pass the first column value and based in it the tool have to select the corresponding radio button in that row. Please someone help me how to handle this as am new to QTP.

2 Answers   CTS,


How can you quit from Action.

2 Answers  


Hi friend I have query regarding QTP datatable. I want to insert data in datatable during runtime. suppose i wrote datatble.value(1) = "Test data" so when i run the script it says column(1) doesn't exist. Then i write something in column A1 manualy and run the script again. Now it works fine. Pls clarify how i can put value in blank cell of datatable.

10 Answers   Apex,


In real time ,How to run all scripts in QTP? i,e in projects

3 Answers  


Differentiate the two Object Repository Types of QTP.

5 Answers  


Categories