Today we’ll cover a valuable technique that will enable us to greatly simplify and organize our code, by adding meta-data to our QTP objects. The technique is best used when coupled with DP, though with certain adjustments, it works fine with OR based scripts as well.
Registeration is FREE, quick and private.
You can either Register pr Login if you have already registered
Summery
To sum up, function patches and entanglement is a common illness, which can have dire consequences on future maintenance and code updates. This article covered one of the more successful techniques (in my experience) for dealing with these problems. The technique suites DP perfectly, since you can easily fit the object-identification into the dictionary building functions, but it can work just as well with OR based scripts.
As always, the example code snippets are the tip of the iceberg. It’s recommended you experience with these methods, and mold them into your own unique coding and scripting style.
Posted in Code Design


Yaron Assa




March 29th, 2008 at 7:36 am
[…] prelude to this design was hinted in a previous article, though naturally the abstraction will be much more ordered and […]
May 7th, 2008 at 10:57 am
It’s a good method to cope with different types of object in GUI.We are able to use a common way to make our script more easy-to-read and easy-to-maintain.
May 30th, 2008 at 8:56 am
this is good method to handle such type of problem
June 8th, 2008 at 1:29 pm
really this material is useful to us. thanks
June 12th, 2008 at 3:51 pm
Really very good Material. I appriciate ur woork.
June 19th, 2008 at 6:09 am
[…] articles of using it as a reserved global dictionary, a parameter storage for generic functions (here and here), and […]