Pages

Wednesday, September 3

Why use Descriptive Programming (DP) in QTP


Isn't it a very frequently asked question in qtp - "why use DP over object repository"?

Here we will look into few scenarios where Descriptive Programming (DP) is more suitable to use then OR.


Scenario 1. - you need to count how many search result are returned when you search a particular search criteria. For example, you want to see how many
qtp/selenium/agile/java jobs are posted on a job portal in last 2 days! you then want to select all and apply.

Because you dont know in advance how many checkboxs will be there on search result, you cant use object repository.

Using DP (childobject), you can easily handle this scenario.

Scenario 2. - you are working on automation of an application where latest code is not deployed yet. To use OR, you must wait untill application is up and running. But if know the object descriptions, you can continue to create you automation scripts using DP.

Scenario 3. - your application is having 10 pages and every page has 2 same button i.e. "Previous Page" and "Next Page". So if use OR, it will add 2 objects for each page i.e. total 20 object for 10 pages. Instead of having 20 duplicate objects and making our OR unnecessarily 'bulky, we can simply write 2 DP objects.

Scenario 4. - Descriptive Programming is very useful for tricky objects like blotter grids, auto-hiding menus and embeded/nested objects and advanced string manipulations.

Scenario 5. - It might not sound a great example but suppose your qtp server is crashed and you can not open/access qtp OR for a while (1-2 days). If you use OR, you have wait until server is back, but you can continue to work if you use DP (advanced users).

Hope above are enough reasons to answer why to use DP at all!!

Click here to learn descriptive programming.

Please share your scenarios/views on this.

13 comments:

  1. Hi Its good , could you please provide some examples

    ReplyDelete
    Replies
    1. Great Article android based projects

      Java Training in Chennai

      Project Center in Chennai

      Java Training in Chennai

      projects for cse

      The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

      Delete
  2. The Information which you provided is very much useful for us. Thank You for Sharing Valuable Information. QTP Training in Chennai | Software Testing Training in Chennai

    ReplyDelete
    Replies
    1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Java developer learn from Java Training in Chennai. or learn thru Java Online Training in India . Nowadays Java has tons of job opportunities on various vertical industry.

      Delete
  3. Superb.An informative one. It is a new information for me. It help me to know about it. Thanks for sharing this information.

    Buy essays online

    ReplyDelete
  4. These provided information was really so nice,thanks for giving that post and the more skills to develop after refer that post. Your articles really impressed for me,because of all information so nice.

    SAP training in Chennai

    ReplyDelete
  5. I was looking this kind of information for many days. Finally I am here. Thanks for sharing.
    dissertation Writing Service

    ReplyDelete
  6. i have a doubt on scenario 2 :- How can we write descriptive programming when the latest code is not deployed yet ? Can you explain me in detail ...

    ReplyDelete
  7. i mean how can we add object property details in the descriptive programming ?

    ReplyDelete
    Replies
    1. what are the documents we refer to get property information ?

      Delete
  8. TreasureBox is operated by a group of young, passionate, and ambitious people that are working diligently towards the same goal - make your every dollar count, as we believe you deserve something better.
    Check out the best
    sofa bed
    shoe rack nz
    bedroom furniture nz

    ReplyDelete
  9. Really very good .....Thanks for sharing it ... 1crore project center is providing best Best android ipt training in chennai with certification and guaranteed output for your projects..

    ReplyDelete