SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jan 2007
    Posts
    36
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    DefaultBaseState invokes the application, again.

    Hey all,
    I did a quick search through the forums and I will continue to look but I'm having a small issue where the DefaultBaseState is invoking the application again. It's a small VB app (quirky) and it basically has two forms, as soon as you hit "OK" on the first form it closes and opens the second form which is a status bar, when it's finished gathering data it presents a dialog box, when you hit "OK" on the box the app closes. At this point the defaultbasestate invokes the application again (because the first form isn't loaded anymore?) how can I prevent this?

    Thanks!

  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)
    Total Downloaded
    0

    Re: DefaultBaseState invokes the application, again.

    Ick.

    You could re-write the Exists method for the object that's defined as your wMainWin object to return TRUE if any of the things exist. Then DefaultBaseState would think it's there, but for some reason I think that would probably bring up other problems that you'd have to get around by writing a BaseState method in your wMainWin object.

    Just spitballing.

    - Dave
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

  3. #3
    Senior Member
    Join Date
    Feb 2006
    Location
    Princeton, NJ
    Posts
    195
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DefaultBaseState invokes the application, again.

    I suppose silktest restores application to it's base state right after testcase is finished at DefaultTestCaseExit function. The last line of this function is calling SetBaseState () which in turn calls DefaultBaseState. You have plenty of options to override the default recovery system:
    - the easiest is to write your own TestCaseExit function which would be executed instead of DefaultTestCaseExit.
    - another option would be to write your own application state and base it on appstate none. But in this case you are loosing the real power of silktest recovery system.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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 01:59 PM.

Copyright BetaSoft Inc.