SPONSORS:






User Tag List

Results 1 to 7 of 7
  1. #1
    Guest

    changing DEFAULTBASESTATE

    Can I do this? And if so, how?

  2. #2
    Junior Member
    Join Date
    Aug 1999
    Location
    Tucker GA USA
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: changing DEFAULTBASESTATE

    The DefaultBaseState can be changed by overriding one of more of the following functions:
    DefaultScriptEnter
    DefaultScriptExit
    DefaultTestcaseEnter
    DefaultTestcaseExit

    Reference page 300 of the online user guide.

  3. #3
    Guest

    Re: changing DEFAULTBASESTATE

    A safer way of overriding DefaultBaseState() is to make a copy of it, rename it (MyDefaultBaseState()), make your desired modifications to it, and then base your appstates on MyDefaultBaseState() instead of DefaultBaseState().

    Tony Mrozinski
    Intel Corporation

  4. #4
    Guest

    Re: changing DEFAULTBASESTATE

    You can change the DefaultBaseState by defining ScriptEnter, ScriptExit, TestcaseEnter, and TestcaseExit. As David Whitehouse mentioned, check out page 300 of the Silk v2.1 Users Guide.

    Also, is there a reason you cant just make a new state, say, STARTHERE state, then when you do your test case, just call it as:

    Testcase myCase() appstate STARTHERE

    This way you dont have to even mess with rename the BASESTATE and modifying it. If you do really need to modify the DefaultBaseState, then the above override function names should do the trick.

    David Genrich
    Wisard SQA/SQC
    Phone: (408) 875-4123
    Pager: (888) 476-5875



  5. #5
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: changing DEFAULTBASESTATE

    Actually, TestCaseEnter and TestCaseExit don't change DefaultBaseState unless you don't call SetAppState () or SetBaseState ().
    Also, by defining a BaseState () method within your wMainWindow, you can add to what DefaultBaseState () does.
    DefaultScriptEnter and DefaultScriptExit don't have anything to do with DefaultBaseState


  6. #6
    Member
    Join Date
    Sep 2002
    Location
    Foster City, CA, USA
    Posts
    55
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: changing DEFAULTBASESTATE

    Can someone provide an example of how to impletement each of the following? The Help didn't really offer an example and isn't really clear.

    ScriptEnter
    TestCaseEnter

    And also these but not as important as the Enters above.

    ScriptExit
    TestCaseExit

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

    Re: changing DEFAULTBASESTATE

    look in defaults.inc at the Default versions of the functions and use them as templates for creating your own.

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

 

 

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

Copyright BetaSoft Inc.