SPONSORS:






User Tag List

Results 1 to 7 of 7
  1. #1
    Senior Member
    Join Date
    Sep 2000
    Posts
    159
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Menu sometimes not found

    For some reason, it can't find the menu.
    It seems to fail 1 out of 10 times.
    I have a long timeout, so that is not the issue.


    my code:

    JavaMainWin("#1").SetActive ()
    JavaMainWin "#1").JavaJFCMenu "Admin").JavaJFCMenuItem("Authorize Admin").Pick ()

    error:

    JavaMainWin("#1").JavaJFCMenu("Admin").JavaJFCMenu Item("Authorize Admin").Pick ()

    *** Error: Window '[JavaJFCMenu]Admin' was not found
    Occurred in Pick
    Called from JavaMainWin("#1").JavaJFCMenu("Admin").JavaJFCMenu Item("Authorize Admin")::Pick at extend\javaex.inc(364)

  2. #2
    Senior Member
    Join Date
    Mar 2000
    Location
    pisctaway, NJ USA
    Posts
    188
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Menu sometimes not found

    What your seeing is normal.
    Write a simple wrapper function or overide the pick to keep trying if the pick failed with the control being WHAT the menu does (ie., look for a window to exist, like FILE/-->OPEN would keep tring to pick the OPEN item until the OPEN FILE dialog exists.) Of coarse try a finite amount of times with small delay between the picks.
    There are many other variations to this, but this is the one that has worked best for me.
    Anthony Pontoriero

  3. #3
    Senior Member
    Join Date
    Sep 2000
    Posts
    159
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Menu sometimes not found

    I don't think this will work.

    I already have a 60 second timeout.The application launches in less than 10 seconds. The first script line after launch is the Pick (). It keeps trying for 60 seconds but does not find the menu.


    And why do you consider this "normal"?

    This looks to be a Silk bug.

  4. #4
    Junior Member
    Join Date
    Feb 2001
    Location
    Kanata, Ontario, Canada
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Menu sometimes not found

    I agree with you, It looks like a bug.

    Try this before the pick()
    "Listprint ( JavaMainWin("#1").GetChildren(true, false))" to see which children exist under your main application and compare with your .inc file if it's the same.

    -Denis

  5. #5
    Super Member
    Join Date
    Jul 1999
    Location
    Rancho Santa Margarita, CA
    Posts
    1,439
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Menu sometimes not found

    If you really think this is a bug in SilkTest, it would be nice, if you have not done so, if you can submit this to Segue so it does not show up again in the next version!!!

    You may get lots of "work-arounds" here by posting your problem(s) but, we will all see the same problem(s) in the future if they don't get reported and fixed.


  6. #6
    Junior Member
    Join Date
    Feb 2001
    Location
    Kanata, Ontario, Canada
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Menu sometimes not found

    I have reported the bug today to Segue.Case ID Number 34025. Hopefully they will fix that ASAP.

    -Denis

  7. #7
    Senior Member
    Join Date
    Mar 2000
    Location
    pisctaway, NJ USA
    Posts
    188
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Menu sometimes not found

    A software problem is something that generally always happens. This happens SOMETIMES (10%). Anyhow, I suggest you try the workaround because I have had success with getting around that problem. I have many OPEN bug issues with Segue which in the world that I am in cannot wait to be fixed.

    In other words go ahead and report it because it will make a better product (I believe in that 100%).
    Good Luck,
    Tony

 

 

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 05:29 AM.

Copyright BetaSoft Inc.