hai, i am doing QTP by own. So, i am confident in
checkpts,synchronization, data driven test, recovery
scenarioe manager etc. but actually i don't know how all
these we wil implement while we r writting code manually.
when we r doing practice, while recording code is
automatically generated but in real time i heard that we
have to write the script.But i don't know how it is?
How to write descriptive prog.? plz. tel me what r the
basic things we have to know? explain how to write
descriptive prog.? explain me with an example pls.......

Answer Posted / priya

Hi,
Descriptive programming means providing description of
objects in the script itself to identify the objects.
we will write DP in 2ways.
1.by using properties collections
2.by using Description.create
example:
Dialog("text:=login).winedit
("attachedtext:=username").set "xxxx"
dialog("text:=login").winedit
("attachedtext:=password").set "yyyy"
Dialog("text:=login").winbutton("text:=ok").click

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is checkpoints for quicktest professional (qtp)?

803


How to create runtime property for an object?

1693


Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?

1707


What are the ordinal identifiers in web page?

852


Name the different types of recording modes?

791


What is the quicktest professional (qtp) testing process?

769


Discuss quicktest professional environment?

805


How to find the name of the machine where you are running your automation scripts in qtp?

775


I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.

1919


what are the issues we will get when there is migration from QTP 8.2 to QTP 10.0? Is there any problem in executing scripts of 8.2 on 10.0?

1682


What are the views available in qtp?

823


Brief the process of testing with UFT?

822


How you are developing the script? Using record and play back or manual?

811


Is it possible to change the values of analog recording?

830


Which scripting language used by quicktest professional (qtp)?

909