What is the use of descriptive programming?

Showing Answers 1 - 2 of 2 Answers

Sharath Goud

  • Sep 14th, 2006
 

Main advantages of Descriptive programming are :-

1)There is no need of Object Repository to store objects.

2)Object properties can be given with in the Script and we can see properties there only.

3)Object identification is  easy compare to normal programming.

  Was this answer useful?  Yes

Deepak Kumar

  • Oct 3rd, 2006
 

The advantages:

1. One can start creating the scripts early in the Sofware Development even when the Application GUI is not avaliable for recording and play.

2. It is an ideal approach if the application is under development and the object implementation is changing frequently. This might require re-recording to make the script runnable.

3. One can mae use of the descriptive prgarmming in the exception handing which gives an easy way for exception handling.

4. This way one can crate a very robust regression test-suite which will not fail anytime a new build is tested.

5. In case of the content verification of a page say report, it becomes essential to use descriptive as the report size may change depending upon the entered records everytime we generate the report. Eg. Expense Summary report, etc. Here simple recording will fail the script if the report changes. Also, if the report is Excel based, we can use the Excel application object and its rich methods and properties to parse through the report and validate the contents.

6. We use descriptive prorgramming in place of wait statement in the cases like downloads of report or other objects like animation, java applet, etc as the Checkpoint facility of QTP may retard the speed of the script run.

7. It is observed that the descriptive programming gives an easy maintainability of large test-suits. When one uses the descriptive programming comprehensively, one can do without OR causing light scripts easy to upload/download to/from Quality Center.

Thanks.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions