SPONSORS:






User Tag List

Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Dec 1999
    Location
    Columbus, OH
    Posts
    78
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dialog based application

    I am testing a dialog based application that can start up in many differnt dialogs based on the computer configuration. There is no MainWin that is guaranteed to appear, and if it does, it is not easy to get back to it for use as a base state. If I declare this as a MainWin and as my wMainWindow the Recovery sytem usually gives me an error stating that [MainWin]... is not found. Is there a way to leverage the Recovery System without declaring a wMainWindow or having a MainWin?

    Thanks in advance for any assistance.

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

    Re: Dialog based application

    I'm not entirely clear about the purpose or inherent variability of your dialogbox application, but you might define it as a "window MainWin ...", change the tag to "[DialogBox]..." and then try it.

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

    Re: Dialog based application

    You need to be perfectly clear about what you want the recovery system to do. Do you want it to close any of the dialogs which are left open, do you want to open a specific dialog, or different dialogs. Then you'll be able to construct an application state which does what you need. You can pass arguments to application states from Organizer. Reply if you want more information. You can probably make SIlkTest do what you want with a little persistence.

    John Green
    Moderator

  4. #4
    Member
    Join Date
    Dec 1999
    Location
    Columbus, OH
    Posts
    78
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Dialog based application

    I declared the dialog box that appears most frequently as a main window and and that seemed to work ok. I had rework TestCaseEnter and TestCaseExit significantly but now I can use the recovery system. I am interested to hear more about passing variables into application states. I was not aware that I could do that. Any further help would be greatly appreciated.

  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: Dialog based application

    Hi,

    The way to pass arguments to appstates is a little tricky. You pass the argument as normal from SilkOrganizer or a main () function. Inside the appstate, use GetTestCaseArgs () to retrieve the list of arguments passed to the testcase. You can use TypeOf (arg) to get the data type of each argument.

    ------------------
    John W Green
    jwgreen@automationexpertise.com
    http://www.automationexpertise.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 11:05 PM.

Copyright BetaSoft Inc.