What is deference between normal QTP testing and
descriptive programming?

Answer Posted / sabareesh

Descriptive Programing is nothing but We define the
Description about an object and create an object and we
perform the action over the object.

the basic syntax of the Descriptive Programming is

‘—-Create Object—-’
Dim oDesc
Set oDesc = Description.Create
‘—-Set ID properties & values—’
oDesc("property1″).Value = "value1″
oDesc("property2″).Value = "value2″
‘—-Use and reuse the description object—’
VBWindow(oDesc).Type "Something"
VBWindow(oDesc).Close
‘—-Release description object—’
Set oDesc = Nothing

One More syntax is for an object Button
Set Obj = Brower("title:=Y").Page("html tag:=x").Button
("Name:=h")
if obj.exist
obj.Click
else
endif


Here the Advantage is that :
we skip the OR cocept so we save more space
Remove machine dependency
Increase clarity of the script

In any case we can go to the Descriptive Programming
provided we know the object Properties with\without
Application.

Mainly people will go for Desc Prog only if it is a Product
where the Reusability of the script is high with minimal
change in the script

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to check bitmap output value?

621


Explain different types of checkpoints?

553


What is the diff between image and bitmap check point?

589


your coming from electrical backgroung..but y ur coming to software side?

1378


How will you test a keyboard?

591






What is the extension of the qtp local repository?

555


How to save your test using quicktest professional?

520


how to know no.of mails in our g mail by using vb-script

1770


When Recovery scenario actually starts while testing the application?

1531


Hi, I am using OutputCheckPoint for 2 webelements Bed:4 and Bath:2 Full,1 partial in my result page and I am storing the value in the data table. I dont need the string Bed:4,I would like to get only the no 4. How can I get it? Even though I highlight only 4,It is seleting the full value "bed 4". Same thing happend for second webelement Bath:2 Full,1 partial I need only the No 2. I used the following to split MyArray = Split(UIBathResult, " ", -1, 1) But it is giving the value My Array(0)=Bath:2full,1Partial I need the only the nos for further comparision.Any help? Thanks Uma

3226


HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?

1708


Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.

1940


How will you compare keyword and expert view?

520


Explain the check points in quicktest professional?

533


HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...

2389