Ehat is the descriptive programing in QTP?

Answer Posted / nanda

the Two above answers are correct...

there is simple technique to write descriptive
programming..to write DP we use Object Identification dialog
box and Object spy dialog box.

Object Identification dialog boxes uses to know which
properties can identify an object uniquely and Object spy
uses to know values of this property..this technique is
suggested when the application is ready only. If application
is not ready we can write only visible properties, like
text, attachedtext, class.

we can write DP in two ways..by throwing the properties
and their values directly in to script (or) by creating an
object by using description.create method.

for example:

set objtext = description.create
objtext("nativeclass").value = "Edit"
objtext("attachedtext").value = "XXXXX"

this will create a text box object.

browser("sadgd").page("sahdga").webedit(objtext).set "asgfsad"

second method is:


browser("sadgd").page("sahdga").webedit("nativeclass:=Edit","attachedtext:=XXXX").set
"asgfsad"

If any queries..
nanda.dreddy@gmail.com

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When Recovery scenario actually starts while testing the application?

1548


With what extension you can save the list of tests in a file to run in test batch runner?

571


If I change the property value at runtime is it effect is object repository?

611


How to use Environment parameterization? Explain with an example.

1482


What is the use of Debug Viewer?

1492






What are the views available in qtp?

592


what type of run time errors you get while you ar edoing rpg program?

1515


how can we compare descriptive programing with a regular expression

1925


when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next

3281


banking domain description for software tester for interview

3469


Explain different types of checkpoints?

562


how to write xml output check point bu useing descriptive programing .means without useing output check point

1654


How do Parameterization and Data-Driving relate to each other in QTP?

560


Explain the concept of object repository & how qtp recognizes objects?

572


What are the different recording modes?

564