Saturday, April 17, 2010

Advantages of using Descriptive Programming in QTP



Recently I have published an eBook for learning Software Testing and QTP Automation.

One of review comments I got for this eBook is, Advantages of using Descriptive programming (DP)in QTP is missing in this eBook.

So, I am planning to add below things as advantages of Descriptive programming.


1. We can start work on writing QTP scripts even before the application under Test is NOT available. It will help to increase the utilization of the Automation scripts as it will be immediately available once the application get released.

2.We can define the properties of an object without considering the parent objects in the hierarchy. i-e Object identification will not depend on its parent object.

Please let me know if we can add any other advantage.

If you don't know what is Descriptive programming you can read below.

Instead of using Object Repository for storing properties of Test objects, we can straight-away define the properties while writing the script itself.

It can be done in two ways.

One is, by giving the description in form of the string arguments.

For example a text box having html code as <input type="text" name="txtUser"> can be accessed as below.


Browser(“Browser”).Page(“Page”).WebEdit(“Name:=txtUser”,”html tag:=INPUT”).set “QualityPoint”.


The other way is using Decription.create as below.

Set objDesc = Description.Create
objDesc(“html tag”).value= “INPUT”
objDesc(“name”).value= “txtUser”
Browser(“Browser”).Page(“Page”).WebEdit(objDesc).set “QualityPoint”.


You can read my previous article to know the disadvantages of this Descriptive approach.

Click here to buy eBook useful for learning Software Testing and QTP Automation.

More Articles...


You can bookmark this blog for further reading, or you can subscribe to our blog feed.

1 comment:

Arvi said...

Nice compilation ... Here are a few advantages of using QTP that I compiled. Let me know your views...

Advantages of QTP

Regards,



Thanks for visiting our blog


twitterrss facebook linkedin YouTube subscribe


Subscribe via email

Enter your email address: