SPONSORS:






User Tag List

Results 1 to 7 of 7
  1. #1
    KS
    KS is offline
    Senior Member
    Join Date
    May 2001
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    dynamic menu item help!!!

    Please take a look at attached files. Save as .html and .htc files to view files.

    Working on Web Application using Silk 5.5

    We have these type of menus, the situation we are facing is - given different permissions to users the menu items are removed or added. Silk looks at these items as HtmlList and does not capture the text of some of the menu items(especially the second level). And also picks up captions as text of the previous menu. we have been working with the index #s and have been unsuccessful , because the index number changes each time the items are added or removed.

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

  2. #2
    Member
    Join Date
    Jun 2001
    Location
    Berkeley, CA, USA
    Posts
    67
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dynamic menu item help!!!

    Is the problem that, for a specific security level, SilkTest cannot access what is there? Or is that the menu items change in ways that make it impossible to maintain one menu declaration?

    If it's the latter, you can set up multiple menu declarations - one for each level of security.

    To do this, move the menu outside the declaration, preface it with the window keyword, give it a unique name, and add a parent reference to the window you took it from.

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

  3. #3
    Senior Member
    Join Date
    Dec 2001
    Location
    Bozeman, MT, USA
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dynamic menu item help!!!

    or you could declare 2 menus for each menu. Like FileAdmin and FileUser that have the items indexes correct for those diff permission levels. Then script your testcase for admin or user with the right File menu object.

    ------------------
    Ryan McCullough
    Accelrys Inc.
    ryan@accelrys.com
    Ryan McCullough
    RightNow Tech. Inc.

  4. #4
    KS
    KS is offline
    Senior Member
    Join Date
    May 2001
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dynamic menu item help!!!

    Thanks for suggestions but....

    There are several permissions and each user can have specific permissions set ie. there are around twelve main functionalities and each functionality has about five permissions/rights. Based on the permissions assigned the menu items appear and also are removed if no permissions. These situation is (the menu behaves similar to js OnMouseOver, although silk looks at the PopupMenu as BrowserChild and items as HtmlList/HtmlText) Silk sees on indexes and does not give text of items. And there is no standard and predictable way of saying which menu appears wher and in what position in the menu. Hope this helps.....


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

  5. #5
    Senior Member
    Join Date
    Aug 1999
    Location
    Cambridge, UK
    Posts
    470
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dynamic menu item help!!!

    Sounds like you really need the menus and menuitems to expose their caption to silktest. Maybe it's worth having a word with the developers about this, to see if they can alter the class behaviour to help you?

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

  6. #6
    Senior Member
    Join Date
    Dec 2001
    Location
    Bozeman, MT, USA
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dynamic menu item help!!!

    we have this problem as well. Our active bar menus have no tags and get recognized really funny sometimes. We have always worked around this until now but KS's problem brings a question to my mind, what if our products get these dynamic menus like what he is facing. I have always been told by the devs that there is nothing they can do about the menus not having Captions or Unique Window ID's. Is this true? If not I think this is an issue I will push with the dev manager.

    I wanted to also mention that all the workarounds for this problem require massive maintenance on the product and multiple defined menus. Basically the menus have to be defined every case. Even if ENUM's were used you would need enums for all cases. I think right now the best way to do this is to use the indexes and talk to your devs about giving you captions KS.

    ------------------
    Ryan McCullough
    Accelrys Inc.
    ryan@accelrys.com

    [This message has been edited by rmccullough (edited 09-18-2002).]
    Ryan McCullough
    RightNow Tech. Inc.

  7. #7
    KS
    KS is offline
    Senior Member
    Join Date
    May 2001
    Posts
    265
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dynamic menu item help!!!

    Thanks Ryan,
    Thats what we are working towards. The dev are trying to generate(runtime) and assign an ID which hopefully will be unique(based on caption/menu item text). The changes have not yet been implemented.Hoping this will solve the issue.


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

 

 

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 09:23 PM.

Copyright BetaSoft Inc.