Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
POP versus OOP paradigm in DP
#1
Not Solved
Hi,
I have found that most QTP developers favor Procedure Oriented Programming over Object Oriented Programming though VBScript supports classes (of course, OOP in VBScript is not so extensive). I strongly favor OOP for following reasons:
1.Abstraction: For instance, in Class_Initialize we can load required information in instance variables and Class_Terminate we can set them to Nothing. At some point of time, Garbage Collector will reclaim memory.
2.Minimize usage of Global variables.
3.Maintainability: Using classes we can organize code in much structured manner as compared to independent functions/Subs. It is easier to locate required function. If TDS is used it can be significantly productive.
4. Possibility of reusing variable names and function names without any possibilities of any name conflicts.

Both approaches can solve a given problem but in a different way. We have to choose a better way.

Any thoughts on this? I will grateful if anyone can add any advantage of Procedure Oriented Programming over Object Oriented Programming.
Reply


Messages In This Thread
POP versus OOP paradigm in DP - by jp@QTP - 06-30-2008, 10:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Not getting error pop up when replaying through batch amit25007 0 1,396 02-14-2017, 04:01 PM
Last Post: amit25007
  How to write DP for a pop up window which appears only during execution and changes anushreebehura 1 3,815 06-07-2012, 07:39 PM
Last Post: supputuri
  Screen scraping using mainframe coordinates versus using highlight edit/copy scouthe2 3 7,015 07-18-2011, 05:56 PM
Last Post: souvikghosh_diatm
  Handling pop-up message linhke 8 7,808 07-13-2010, 10:23 AM
Last Post: sasmitakumari
  DP and OOP with QTP tushar 0 2,646 11-08-2008, 06:53 PM
Last Post: tushar

Forum Jump:


Users browsing this thread: 1 Guest(s)