SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Nov 2001
    Location
    UK, Oxford
    Posts
    150
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Verifying cripples recovery system

    I have noticed when running a testcase, or testplan, that in certain circumstances (which I am unable to ascertain) ST seems unable to close any opened windows to report the error. ST seems caught in a loop, and after I have manually aborted the testcase, reports the verify failure and these many attempts at trying to close a particular window.
    I can get around this by catching the verify exception:
    do
    blah.blah.blahtextfield.VerifyValue("blah")
    except
    close opened windows
    reraise

    ...but that seems crazy.
    I am using an appstate basedon another appstate basedon DefaultBaseState for most testcases...
    what am I doing wrong...?

    ------------------
    Tempus fugit, Carpe Diem, et al

  2. #2
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Verifying cripples recovery system

    Have you redefined any of the Close methods for the objects that SilkTest can't seem to close?

    At the end of a testcase, only DefaultBaseState runs, not the application states that are based on it, so that shouldn't be the issue. If you open those windows and just run DefaultBaseState (Run -> ApplicationState), does that work?

    - Dave


    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

  3. #3
    Senior Member
    Join Date
    Nov 2001
    Location
    UK, Oxford
    Posts
    150
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Verifying cripples recovery system

    No, it doesn't... (interesting)

    My DefaultBaseState should take my to a window called 'Launch'
    As you suggested, I opened a window from 'Launch' (in this case called 'StructureInspector') and then tried to run the DefaultBaseState. In the Runtime status window, the current Agent calls cycle thus:
    StructureInspector.SetActive()
    Launch.GetCloseWindows()
    StructureInspector.BuiltinClose(TRUE, TRUE)

    My setting in Agent options is:
    Agent.SetOption (OPT_CLOSE_WINDOW_BUTTONS, {"Cancel", "CLOSE", "EXIT", "DONE"})

    Damn, what silly thing am I doing wrong


    ------------------
    Tempus fugit, Carpe Diem, et al

  4. #4
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Verifying cripples recovery system

    Well, maybe it's time to rewrite the Close method for the problematic window. Then, SilkTest will call that method rather than trying to use the BuiltIn method.

    - Dave


    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

 

 

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 04:05 PM.

Copyright BetaSoft Inc.