SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: test login screen

    tong,

    This is precisely the reason we don't use DefaultBaseStates in our automation process. I have an ingrained resistance to anything that takes control away from me. I want absolute control over everything that happens in my script. Without more specifics, it is difficult to say with certainty, but it seems if you set appstate to none, you should be able to log in and out at will.

  2. #2
    Junior Member
    Join Date
    Feb 2001
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: test login screen

    Thanks, DJGray:

    I do not want ot use DefaultBaseState either. But the problem is how to invoke the application without going through DefaultBaseState?

    To test the login part, I need to invoke(start) the application each time when I run the testcase.



    ------------------

  3. #3
    Junior Member
    Join Date
    Feb 2001
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    test login screen

    IN my application, the login window displayed before the main window.

    Now I am trying to automate the login process to simulate user login first then exit application and repeat this many many times.

    How can do this?
    I write a testcase to do it once. Then I use a for loop to repeat. but it seems that the defaultBaseState can only setup when you enter the script, instead of everytime for the testcase.

    If anyone have a simple way to solve it?

    tong

    ------------------

  4. #4
    Senior Member
    Join Date
    Mar 2000
    Location
    Dublin, Ireland
    Posts
    152
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: test login screen

    Hi tong,

    You will need to use 'appstate none'. This will tell SilkTest not to use the DefaultBaseState. The syntax is,

    testcase testcase_name () appstate none

    In general, if you have a login window appearing before the main window of your application, create an invoke method for your main window (derive it from the existing implicit invoke method and include the login actions), uncomment and set the wStartup in the main declaration to the identifier for the login window. The logging on process should now be covered by the DefaultBaseState.

    window MainWindow MyMainWindow
    ...
    const wStartup = MyLoginWindow
    ...
    Invoke ()
    derived::Invoke ()
    MyLoginWindow.Username.SetText (...)
    MyLoginWindow.Password.SetText (...)
    MyLoginWindow.OK.Click ()


    window DialogBox MyLoginWindow
    ...


    I hope that this helps.

    John.

    ------------------

    John O'Neill.
    Quality Automation Ltd.
    www.quality-automation.com
    John O'Neill.
    Quality Automation Ltd.
    www.quality-automation.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 10:44 AM.

Copyright BetaSoft Inc.