SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Actions v/s Functions?

    Finally I decided to write my personal opinions on the topic

    http://knowledgeinbox.com/articles/q...-vs-functions/

  2. #2
    Senior Member
    Join Date
    Jul 2004
    Location
    Marietta, Georgia
    Posts
    317
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Actions v/s Functions?

    Couldn't agree more. Nicely written, Tarun.
    <font color="#6B6B6B">Scott Genevish
    Principal Consultant
    Designed Quality</font>

  3. #3
    Junior Member
    Join Date
    Apr 2007
    Location
    Sheffield
    Posts
    27
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Actions v/s Functions?

    I agree with most of what you say however it appears the article discusses one or the other. Is there no half way house worth discussing?
    Also is it worth considering how BPT (as a future consideration) may influence a decision?
    Just a few questions that came to mind.
    Keep up the good work.

  4. #4
    Advanced Member
    Join Date
    Nov 2007
    Location
    India
    Posts
    686
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Actions v/s Functions?

    Good one, Tarun.One stop for all facts related with actions/functions.Well written!!!

    Can you also put some quick tips around smooth migration of code from actions to functions and what are the points needs to be taken care.
    Kind regards,
    Anand Tambey

    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

  5. #5
    Advanced Member Anshoo Arora's Avatar
    Join Date
    Oct 2007
    Location
    New Delhi, India
    Posts
    635
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Actions v/s Functions?

    Tarun, very well written article indeed. I'm glad to see you're writing on KnowledgeInbox again. [img]/images/graemlins/smile.gif[/img]
    Regards,

    Anshoo Arora
    Relevant Codes

  6. #6
    Senior Member
    Join Date
    Sep 2006
    Location
    CA, USA
    Posts
    425
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Actions v/s Functions?

    Tarun, I don't agree with you on the topic for the following reasons:

    1. Action is the most important feature of QTP and all quick and dirty techniques are associated with Action.

    2. Action provides overall visual control structure.

    3. Action provides an unique enviornment: datasheet,
    parameters, objects, checkpoints, output, iterations, and etc.

    The disadvantage of action is its overhead in storage and speed. Therefore, we need not to abuse Action. In place that you just want to do something repitively use a Function.

  7. #7
    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: Actions v/s Functions?

    @Anand, Surely will do that.

    @Jene, As I mentioned in the article not all will agree with my opinion as there is some personal preference as well. In any case you can't avoid actions as the First/Main action will always be required.

    [ QUOTE ]

    1. Action is the most important feature of QTP and all quick and dirty techniques are associated with Action.


    [/ QUOTE ]
    I agree and that is why I still use the Main action

    [ QUOTE ]

    2. Action provides overall visual control structure.


    [/ QUOTE ]
    Honestly not very great. The keyword view is pathetic when you have to see the flow of a script which mixes code and action calls. And there is no good designer for the same

    [ QUOTE ]

    3. Action provides an unique enviornment: datasheet,
    parameters, objects, checkpoints, output, iterations, and etc.


    [/ QUOTE ]
    Actions do have an advantage that they run in separate thread and that thread gets destroyed when the action call ends. So you can use the same to load code dynamically and unload it also. But not sure in which situation we would use that.

    Anyways I have few more updates that I have got in mind. Will update my article soon

  8. #8
    Apprentice
    Join Date
    Dec 2006
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Actions v/s Functions?

    good work and very thanks Tarun... for your valuable contributions and knowledge sharing on QTP/Automation Process. [img]/images/graemlins/smile.gif[/img]


    Thanks,
    Shantikiran Bhimana
    Mumbai, India

  9. #9
    Super Member QAGanesh's Avatar
    Join Date
    Sep 2010
    Posts
    1,898
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Actions v/s Functions?

    Nice Post Tarun, it was very informative and interesting. As you mentioned its always like walking on a tight rope, when we get to decide Functions vs Actions.
    Thanks,
    Ganesh Iyer
    Winds of Change

  10. #10
    Member
    Join Date
    Jan 2008
    Location
    China
    Posts
    89
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Actions v/s Functions?

    Strongly agree with Tarun's opinion on this. I prefer functions also. Generally, if someone is familiar with coding, I'll suggest him to use functions instead of actions. And from my project experience, it's painful to use reusable actions for a big project.

 

 
Page 1 of 2 12 LastLast

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 7.89%
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 04:28 PM.

Copyright BetaSoft Inc.