SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Apr 2007
    Location
    Charm City
    Posts
    54
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Add descrptive prog objects to keyword view

    Hi,

    I'm using QTP 9.1, no add-ins, nothing special. I'm using the descriptive programming approach.

    Is there a way that I can add my DP objects to the keyword view so that they can be chosen instead of typed in (to avoid misspellings and shorten debugging time)? Is there some API that I can call to add them?

    I did some research on environment variables, but I'm not sure if I'm looking at the right thing.

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Add descrptive prog objects to keyword view

    Well I dont think you can do that. And once you are using descriptive programming there is no point in using Keyword view...

  3. #3
    Advanced Member
    Join Date
    Mar 2007
    Location
    Salt Lake City, UT, USA
    Posts
    606
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Add descrptive prog objects to keyword view

    I hope one of these guys who uses DP all the time can give you a better answer and prove me wrong, but in my limited DP experience, there are many benefits of DP, but one of the downsides is the extra effort to code the script using DP (no point-n-click, no keywords, no autofill, no spell-chcking, etc.).

    I guess it depends on the level you take your framework.

    You can redefine just about anything in external libraries. Rename and register any functions you want, create object libraries, wrap it all in fancy wrappers that insert and verify data, create new functions that call groups of functions, create functions to call groups of those functions, etc. Create enough layers of all this, and your full regression script boils down to basically one line of code: "Execute()" that fires off the initial function that calls the functions that call the other functions, etc.

    Pretty easy to spell-check and debug that one line of code.

    Pretty nightmarish to set up all those layers of the framework (but pretty sweet once you get it done). And, even then, while you create those layers, you're pretty much going to have to type it all in and spell-check and debug the old-fashioned way.
    "The last 10% of any software project will take 90% of the budgeted time. The first 90% will take the other 90%"

  4. #4
    Member
    Join Date
    Apr 2007
    Location
    Charm City
    Posts
    54
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Add descrptive prog objects to keyword view

    Thanks Tarun and Blake!

    The question came up today during the POC demo. Another group really likes to click in the keyword view and choose their values to avoid mistypings. Personally, for me its easier to write the statements, but I think they may have some folks who are new to QTP and they're trying to make it as easy as possible to pick up.

    Made me laugh! "Pretty easy to spell-check and debug that one line of code."

    Have a great weekend guys!

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:33 AM.

Copyright BetaSoft Inc.