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.
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%"
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."