SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jan 2005
    Location
    Duisburg,Germany
    Posts
    89
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Function libraries as classes

    Currently our function lib's contains functions which are used by the Test cases. we are looking for making function libs as classes.

    Advantage:

    Namespace problems are solved.

    Disadvantage:

    As VB Script doesn't support Inheritance and polymorphism, I believe it is much work to convert existing function libs into classes (as the advantage is solving namespace problem only).

    Please provide your insights about my words.

  2. #2
    SQA Knight
    Join Date
    Jul 1999
    Location
    Grand Rapids, MI
    Posts
    3,730
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Function libraries as classes

    I implement all of my libs using custom classes for the reasons you state. Here are two threads to help you on your way to doing the same:

    http://www.sqaforums.com/showflat.ph...;Number=396463

    http://www.sqaforums.com/showthreade...age=0&vc=1

    I find the notion of using a vbScript class as a logical "bucket" to gather together related functions to be as valuable as its additional namespace benefits. In addition you can add error checking to class Properties, should you choose to use these instead of vanilla class variables.

 

 

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 © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:06 AM.

Copyright BetaSoft Inc.