Is it a good practice to use classes in QTP?
On seeing some posts on the usage of classes in QTP, I am having thoughts to know if usage of classes in the QTP scripting - a good practice?
Though I know the OOPS concepts and have done C++ programming, I have never used classes in QTP and the situation did not demand that as well. I have been in the Automation testing of 4 to 5 web applications so far, but never seen the usage of classes in real time.
So, please let me know if the usage of classes a good practice in QTP scripting.
- Devaraj R
Re: Is it a good practice to use classes in QTP?
VBScript provides very less Object Oriented Functionality compared to C++. (With some workarounds)
It is a personal choice and inclination to go for classes. If you are well versed with classes and you can code fast/ efficient in object oriented, then it is best for "you".Still you will not be satisfied with VBScript offerings.
The other external impacting factors are delivery schedules, experties in team and learning curve for new members.Remember effectiveness of class code is as good as programmer of that.
So if you have enough time and expertise, it could deliver robust solution using it.
You can check AdvancedQTP(Meir Bar Tal/Yaron Assa) and RelavantCodes(Anshoo Arora), who had shown great work towards implementing classes in their frameworks.
RSS Feed : Break To Make it Better
A Lazy person could be the best automation professional, if he is not lazy in implementing his ideas to reduce his work. ~Anand Tambey