SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    Senior Member
    Join Date
    Sep 1999
    Location
    San Jose,CA,USA
    Posts
    340
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: testcase vs. function

    Personally I employ libraries of functions whenever possible. Where the library name should indicate the are it is used in (i.e):

    (1) utility.inc
    (2) test_area1.inc
    :
    (n) test_arean.inc

    Where I reuse the functions and extend them (invariably) with an ever growing list of positional parameters.

    I prefer this over test cases only because it's possible for unrelated test areas to use bit's and pieces of functionality, without re-writing test cases for special cases.

    Also because of the use path .. it's a bunch easier to get to functions. You can even zip up a de-facto library grouping by a standard include file.

    ------------------
    "Smoke me a kipper, I'll be back for breakfast!"
    Sincerely
    Richard Weth
    Sr. QA Engineer
    mailto:rick_weth@yahoo.com

    [This message has been edited by rick_weth (edited 02-25-2000).]
    Smoke me a kipper, I'll be back for breakfast!
    Sincerely
    Richard Weth
    Sr. QA Engineer

  2. #2
    Senior Member
    Join Date
    Aug 1999
    Location
    MA
    Posts
    129
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: testcase vs. function

    I agree that functions are better. It is extremely easy to reuse code when you use functions. I look at testcases as "managers" of function calls.

    You can't call the code from one testcase from another, to my knowledge. With functions, it is easy.

    You can also take common non project specific functions and place them in a central location, making it easy to port working, thoroughly tested and debugged Silk code to new projects.
    Steven Tyler
    Manager - Performance Engineering

    Kronos Incorporated
    tel: +1 978 947 4219

  3. #3
    Junior Member
    Join Date
    Dec 1999
    Location
    Pleasanton, CA
    Posts
    16
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: testcase vs. function

    The reusibility depends on the function itself. When you have a lot of system calls or basically you use 4test language, functions in a .inc file is the best. You can decear a .dll within those file and do system call or use API methods. If for some application and window declearation specific testing, you can write function to do those repeated work. you cannot call it if it is a testcase. this kind of function maybe not portable as the first kind, but it still better than testcase.

    ------------------
    jim.young@documentum.com

  4. #4
    Junior Member
    Join Date
    Feb 2000
    Location
    San Mateo CA, USA
    Posts
    10
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    testcase vs. function

    Which one is more maintainable and more flexible? Does anyone have any input on this?

    [This message has been edited by Amos (edited 02-29-2000).]

  5. #5
    Junior Member
    Join Date
    Feb 2000
    Location
    San Mateo CA, USA
    Posts
    10
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: testcase vs. function

    Thank you all for your inputs!!

  6. #6
    Junior Member
    Join Date
    Feb 2000
    Location
    Bombay,Maharashtra,India
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: testcase vs. function

    I don't know how come you people are comparing a function with a testcase?A testcase is a container for function as well as structured code.Now,whether you include the function in a .inc file;write in testcase and call it through through main() or write the code in structured manner,its the code that is manipulated through testcase.The difference is basically there.A function can be run,and most imp.,there is a defaultbasestate for a function so appl. can be run by itself.
    If it can clear your concepts,my purpose will be solved.

    ritz

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 12:20 PM.

Copyright BetaSoft Inc.