Ehat is the descriptive programing in QTP?

Answers were Sorted based on User's Feedback



Ehat is the descriptive programing in QTP?..

Answer / ksuresh_999

In Three Situations we go for Descriptive Coding
a)When QTP is unable to identify the "Object" in
the Application?
b)When the "Object repository" become large to avoid that
c)When we are writing "Script" the application is not
ready, then we go for "Descriptive coding". For that dev
team provide LLD Docs.

Each object has default properties like Text Box has Text,
Attached Text, Native Class, Window ID.


Ex:- for login window

Dialog("Name:=Login").Winedit("Name:=User
Name :").set "Abcedf"


Dialog("Name:=Login").Winedit
("Name:=Password :").setsecure "Mercury"


Dialog("Name:=Login").Winbutton("Name:=Ok").Click


That means we provide the properties in scripting for
identify the objects in application.




Suresh K
09341899039
ksuresh.testing@gmail.com
Bangalore

Is This Answer Correct ?    2 Yes 1 No

Ehat is the descriptive programing in QTP?..

Answer / 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

Ehat is the descriptive programing in QTP?..

Answer / sbbceo

How do I record a script to automate the username and
password for 3 different types of surveys who's username
and password are all the same? I need to run this same
piece of script against all these surveys who get prompted
for the username and password at the exact same place.

Is This Answer Correct ?    0 Yes 2 No

Ehat is the descriptive programing in QTP?..

Answer / nath .t

Descriptive programming means we can write VB Script
without objective Repository. we can write program with
the help of object properties.

ex: if u want to write descriptive program for login page

login page have userid and password and ok, cancel button

every object have some common properties with that we can
write descriptive program suppose u take here login is
window.

Window have some properties like TEXT, ATTACHED TEXT,
NATIVE CLASS, WINDOW ID.....


same as for Text boxes having TEXT, ATTACHED TEXT, NATIVE
CLASS, WINDOW ID....

with the help of above properties we can write descriptive
program

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More QTP Interview Questions

what type of scripts are asked in qtp?

2 Answers  


Is it possible to run qtp scripts in Test Director(Scripts are uploaded in Test director)???and also how to see the test results in test director???

1 Answers  


How to make Shared object repository in qtp 9.1 and 9.2?

2 Answers  


A web Page has 2 frames. Find out the number of weblist items in the second frame of the page.

2 Answers   Virtusa,


I have recorded a test over web application(with IE6.0) in analog mode. But, while running it my test gets failed. Why? (Note: my systray has 3 open web applications)

7 Answers   Xansa,


Hi, When iam trying to import sheet to the QTP Global data table at the run time using the Importsheet method.It is able to import the sheet but no data is present after the import due to which the test is failing.Could anyone suggest what should be done. When I open the actual excel sheet data is present and is not corrupted.

2 Answers  


Which Databases supports for QTP?

3 Answers   CTS,


In Manual testing , can u prpare bug report in TD?

1 Answers   TCS,


What is difference between WR and QTP?

2 Answers  


Lets say,flipkart website...in search button we have entered category[i.e watches] it displays some items...question is how to test price displayed each product is correct or not through qtp

1 Answers   Cap Gemini,


how can i replace any text from the qtp script with some anothere text

1 Answers   Livetek,


What are the data types in qtp?

0 Answers  


Categories