SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Sep 2000
    Posts
    159
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    AppState question:

    Launch App

    TestCase1
    Click Next Button on Welcome Screen 1 to go to Screen 2

    TestCase 2
    Fill out info on screen 2 and click Next Button.

    Expected Result:
    Information dialog box informing "success account creation...

    Sometimes:
    Error Dialog "can't connect to server" or other error.

    I define TestCase 2 based on AppDefaultBaseState()

    It automatically closes the unexpected error dialog and displays Screen 2 if TestCase2 fails.

    I'm wondering:

    Is there a way with AppState to make it come back to the Welcome Screen if TestCase2
    fails ?

    i.e., I want the defaultbasestate = application has launched and the Welcome Screen is displayed.

    if any subsequent test cases fail , i want the opening Welcome Screen again. The test cases are dependent on each
    other, so if any particular one fails it needs to be started from step 1.

  2. #2
    Senior Member
    Join Date
    Jul 1999
    Location
    New York, NY, USA
    Posts
    137
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: AppState question:

    Raul,

    That is exactly what the method appstate does. Please look in the user guide for its' use and go from there.

    BTW The testcase mothode will always start from DefaultBaseState unless a different appstate is specified. Also if you want ot modify DefaultBaseState you can do this through a derived invoke method. All of these are well documented in the user guide.

    [This message has been edited by woodman (edited 02-15-2001).]

  3. #3
    Junior Member
    Join Date
    Feb 2001
    Location
    Milton, Ontario, Canada
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: AppState question:

    Raul,

    I agree with woodsman, but while you're looking at those help files, there are a few other things that may help you.

    Have you thought of using .Exist() method in an if statement to trap that error message, and then SetAppState ("DefaultBaseState")?

    Also, you may want to look into the SetTrap() method, which is also very useful...

    Both are easily found in the silk test help files.

    Marcus


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

    Re: AppState question:

    Thanks, I will have to study this again.

    I got confused because I set my TestCase2 based on DefaultBaseState.

    I thought that when TestCase2 fails, it should return to the DefaultBaseState,
    which I defined as the OPening Welcome Screen.

    Instead, it just closes the error dialog and
    recovers to Screen 2.

 

 

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 02:26 AM.

Copyright BetaSoft Inc.