SPONSORS:






User Tag List

Results 1 to 5 of 5
  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)

    Application is not Invoked as \"Active\"

    Argh!

    I have an Java Swing AUT that needs to be closed and reopened multiple times during the test. about 1/4 of the time the application is invoked, but does not come up as an Active window, or one with Focus. It is greyed out as though it is sitting in the background.

    I have tried a number of things but to no avail. I am using the Start() method to call the application, and the application never reports back as loaded, so the Start method basically never finishes its job.

    It makes no difference if this is run remotely, or on the local machine. Behavior is the same.

    Any ideas? BTW, this is very closely related to the question posted by Girja on SilkTest opening multiple applicatons.

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

  2. #2
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Application is not Invoked as \"Active\"

    Did you try to run the script with other apps closed, and/or use the alt-tab to set the focus on your app? Never dismiss workaround(nice/ugly).

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

  3. #3
    Senior Member
    Join Date
    Aug 1999
    Location
    MA
    Posts
    129
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Application is not Invoked as \"Active\"

    try this type of thing for your app

    ------------------
    Steven C. Tyler
    Lead SQA Automation Engineer - Timekeeper Central group
    styler@kronos.com

    [This message has been edited by styler (edited 07-30-2001).]
    Steven Tyler
    Manager - Performance Engineering

    Kronos Incorporated
    tel: +1 978 947 4219

  4. #4
    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: Application is not Invoked as \"Active\"

    Thanks for the reply, both of you.

    Styler, innovative approach, but no change. GK, I have not tried the Alt-Tab yet, but that may work. I can put together a routine that checks for the application to be active and keep sending the Alt-Tab keystroke until that is true.

    I'll try it.

    Thanks.

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

  5. #5
    Junior Member
    Join Date
    Aug 2001
    Location
    New York, NY
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Application is not Invoked as \"Active\"

    ever try just creating your own Invoke() methods for the applications you are trying to start by just pointing to the .exe file to start the app?? once your invoke is set, create another method called Exists (nTimeout) which will just check for a particular object in the first window of your app. the Exists () method will be a BOOLEAN with an optional number of seconds for SilkTest to wait until the window appears.

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

 

 

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 08:59 AM.

Copyright BetaSoft Inc.