SPONSORS:






User Tag List

Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Sep 2002
    Location
    Chicago, Illinois, USA
    Posts
    90
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SilkTest \"use\" statement

    We have some generic functions across multiple projects, for examples, fucn1, func2, func3, and so on. Each function is located in a separate inc file, func1.inc, func2.inc, .....

    All these functions are located in a single directory, "GenericFunc".

    My question: Can we use some "use" statement at the beginning of a test script to include all these functions in one statement? Something like: use "..\GenericFunc\*.inc".

    Since the list of generic functions is getting longer and longer, we don't want to insert a long list of "use" stetements in every script.

    Any suggestion is appreciated.

    ------------------

  2. #2
    Junior Member
    Join Date
    Jun 2002
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest \"use\" statement

    Put all the functions in the same .inc file.

    and call it functions.inc


  3. #3
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest \"use\" statement

    Or put multiple "use" statements into that consolidating function.inc file:

    use "func1.inc" ;
    use "func2.inc" ;
    use "func3.inc" ;
    .
    .
    .


    ------------------

  4. #4
    Senior Member
    Join Date
    Jul 2000
    Posts
    117
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest \"use\" statement

    ... and then ...
    add functions.inc to your "use files" (under Options -> Runtime).

    Now you don't have to have a "use <anything>" entry in any of your scripts.

    BTW, you can save this off as an "Option Set" in the event that you need different environments for different types of testing.

    Caveat -- See John Green's "Simple Question" threads for a discussion of the pros and cons of doing what I've suggested.

    ------------------

  5. #5
    Member
    Join Date
    Sep 2002
    Location
    Chicago, Illinois, USA
    Posts
    90
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest \"use\" statement

    Thank you all for the response. Actually, what John J. Miller suggests is what we are using right now.

    I wonder if we can use a wild char, like *, to include all files in a directory. I did extensive search in SilkTest Help. The answer seems to ne "NO".

    Thanks again.


    ------------------

 

 

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 07:34 AM.

Copyright BetaSoft Inc.