SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Oct 2002
    Location
    Melbourne, FL
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Solution .. Java - WinRunner Focus Issues

    Struggled for a long time to get winrunner to handle java apps properly. Often found that record and play back did not work...
    Place "\t" after edits helped...
    Tried FOCUS_GAINED and FOCUS_LOST ... did not work..
    Focus management issues are the problem
    My final solution by trial and error!

    set_window(yourwindow);
    set_window(anotherwindow);
    set_window(yourwindow);

    This seems to make things work most of the time. If I do not do this Java apps seem to have problems....

    I call it the Double-Take Focus solution!
    Hope this helps some of you!
    Any other java winrunner tricks???
    dd

  2. #2
    Member
    Join Date
    Oct 2002
    Location
    McKinney, TX, USA
    Posts
    37
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Solution .. Java - WinRunner Focus Issues

    One other Java/Winrunner trick which may be
    applicable to you is adjusting the time out
    values to allow for JVM Garbage Collection (GC). When a GC occurs the application will
    be frozen in time for a time interval
    ranging from milliseconds to 30 seconds
    depending on the amount of memory used by
    the JVM. This can cause Winrunner to time
    out waiting for events. Adjusting the timers
    upwards will help address this and make your
    scripts run more reliably.

    If your application uses a JVM heap size of
    256MB or more this may help you.

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

    Bill Thomson
    Test Architect (Demolition Man)
    Testability = 1/complexity
    Bill Thomson
    Test Architect
    Testability = 1/complexity

  3. #3
    Junior Member
    Join Date
    May 2003
    Location
    Offutt AFB, NE, USA
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Solution .. Java - WinRunner Focus Issues

    I have attempted to re-produce the double focus issue with no success. All my Java programs have so far worked with winrunner, i even created new objects extending from Java objects, and the Java add-in still did not break. Winrunner version 7.5, Java add in release for 7.5. No updates have been installed. Any ideas on how I can break the Java add-in?

    ------------------
    Eugene Koob
    Eugene Koob

  4. #4
    Moderator Joe Strazzere's Avatar
    Join Date
    May 2000
    Location
    USA
    Posts
    13,170
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Solution .. Java - WinRunner Focus Issues

    Moving to WinRunner forum...

    ------------------
    - Joe (strazzerjATaolDOTcom)
    Joe Strazzere
    Visit my website: AllThingsQuality.com to learn more about quality, testing, and QA!

 

 

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 11:20 AM.

Copyright BetaSoft Inc.