SPONSORS:






User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Member
    Join Date
    Dec 2002
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    TestplanEnter and TestplanExit functions

    Can someone tell me how to find out more information on testplanenter and testplanexit functions?

    I am using SilkTest 6.0.1.

    Thanks in advance for your help.



    ------------------
    DJ
    DJ

  2. #2
    Super Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    1,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: TestplanEnter and TestplanExit functions

    Besides the function reference in the Help file, there isn't anything. What information were you looking for that isn't in there? I'm sure that if you post a specific question that there will be answers to be had.

    ------------------
    James Soderborg
    http://www.ameliortech.com
    jamesso@ameliortech.com

  3. #3
    Member
    Join Date
    Dec 2002
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: TestplanEnter and TestplanExit functions

    If I type these words, I don't get any online help.

    Anyway, I was looking for the information,
    * Where should I write these functions?
    * How to access the variables declared in these functions in the plan file, in the *.t file, OR in the *.inc file etc...?

    Thanks,


    ------------------
    DJ
    DJ

  4. #4
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: TestplanEnter and TestplanExit functions

    You can put it in any include file that's listed in your frame.inc file so that it get's compiled.

    Any variable that's global will be accessible by the other files.

    ------------------
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  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: TestplanEnter and TestplanExit functions

    You can simply modify the func by adding wahtever you want into the func body. Don't worry what is already included in the func.

    TestPlanEnter ()
    [ ] print("This is my test. Starting .......")
    // or any other func you want to execute

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

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

    Re: TestplanEnter and TestplanExit functions

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by djava:
    Can someone tell me how to find out more information on testplanenter and testplanexit functions?
    <HR></BLOCKQUOTE>

    The help index doesn't specifically identify these functions by name but documentation for them can be found by looking for "testscriptenter".

    Also the Recovery chapter in the 5.x (or earlier) "User's Guide" book adds considerable depth to understanding how they operate.

    John


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

  7. #7
    Member
    Join Date
    Dec 2002
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: TestplanEnter and TestplanExit functions

    Thanks to all who replied.

    John, I have got hold of 5.5 "User's Guide" and will read through that.

    I wish SilkTest 6.0 came with the "User's Guide" too

    ------------------
    DJ


    [This message has been edited by djava (edited 04-24-2003).]
    DJ

  8. #8
    Member
    Join Date
    Dec 2002
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: TestplanEnter and TestplanExit functions

    Now that I know little bit more about these functions, I have couple of questions.

    * If I override the TestPlanEnter() function, e.g. to decalre a global variable, can it still call the default function?

    * I know that we can declare a global varibale through 'TestplanEnter() function. How can I access it through the plan file and pass to my testcases in .inc file or how to access it through .t file. (I declared this function in my frame.inc file.)

    Thanks for your help.

    Regards,

    ------------------
    DJ


    [This message has been edited by djava (edited 04-25-2003).]
    DJ

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

    Re: TestplanEnter and TestplanExit functions

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by djava:

    * If I overwrtite the TestPlanEnter() function, to decalre a global variable, can it still call the default function?
    <HR></BLOCKQUOTE>
    You could but there would be little if any reason to do so. Take a look at their implementation in defaults.inc (Program Files...Silktest folder) and you'll see why. By taking over control of the enter/exit routines you essentially release yourself from the limitations inherent with Test frames.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>
    * I know that we can declare a global varibale through 'TestplanEnter() function. How can I access it through the plan file and pass to my testcases in .inc file or how to access it through .t file. (I declared this function in my frame.inc file.)
    <HR></BLOCKQUOTE>

    By defining $variables in the test plans you can pass those same variables as parameters to each testcase listed in the plan.

    The absolute best way to completely understand the interactions of global variables, plans and .T files is to create a full experimental set of the six enter/exit routines, a dummy plan, two separate .T files with one or two testcases each. In each Enter/Exit routine put the equivalent of:

    Print "I'm entering ScriptEnter"
    Print global variables
    Print "I'm exiting ScriptEnter"

    do the same with the testcases, then run the plan. Besides seeing the nesting of the various functions, you'll find that the globals don't react as you might expect.


    John


    [This message has been edited by John J. Miller (edited 04-25-2003).]

  10. #10
    Member
    Join Date
    Dec 2002
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: TestplanEnter and TestplanExit functions

    Thanks John for your quick reply.

    I got the idea of using TestPlanEnter for global variables from one of the earlier posts. Looks like I misunderstood. I will definitely try your suggestion.

    Anyway, what I really want to do is,

    * Read an *.ini file and assign a value to a variable in the *.pln file to pass to my testcases in *.t file.

    Do you know of any way to achieve this?

    Thanks,
    Deepa.


    ------------------
    DJ

    [This message has been edited by djava (edited 04-25-2003).]
    DJ

 

 
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
  •  

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:43 AM.

Copyright BetaSoft Inc.