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
When Recovery scenario actually starts while testing the application?
With what extension you can save the list of tests in a file to run in test batch runner?
If I change the property value at runtime is it effect is object repository?
How to use Environment parameterization? Explain with an example.
What is the use of Debug Viewer?
What are the views available in qtp?
what type of run time errors you get while you ar edoing rpg program?
how can we compare descriptive programing with a regular expression
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
banking domain description for software tester for interview
Explain different types of checkpoints?
how to write xml output check point bu useing descriptive programing .means without useing output check point
How do Parameterization and Data-Driving relate to each other in QTP?
Explain the concept of object repository & how qtp recognizes objects?
What are the different recording modes?