SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Oct 1999
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Having trouble with changing tags on motif

    While porting our 4Test automation code to motif, I'm experiencing cases where my window tag definitions are unexpectedly changing. For example using the window recorder over my window of inhterest, I sometimes get:

    MainWin("HelloWorld").CustomWin("[COMPOSITE]#1]").CustomWin("[COMPOSITE]#1").TextField("#1")

    and sometimes I get:

    MainWin("HelloWorld").CustomWin("[COMPOSITE]#1]").CustomWin("[COMPOSITE]#2").TextField("#1")

    Notice the changing index in the second CustomWin. This change is not predictable and I need a reliable way to either prevent the changing tag, or a reliable property that can get the correct window. I've created property methods that will try incremental combinations of tag indices in a do-except block until it finds a good window, but this is very ugly. There must be better way.

  2. #2
    AJ
    AJ is offline
    Moderator AJ's Avatar
    Join Date
    Jun 1999
    Location
    San Jose, CA
    Posts
    1,691
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Having trouble with changing tags on motif

    There sorta is, but....

    Here's what you can do...

    Create a Window class for this cutom class.
    Create a method for that class which returns the correct index. (tries each until it finds it or whatever then passes it back)
    In the tag of the declaration, call that method (GetTag ())
    Now please don't ask me to be more specific, it's a hard one to implement, but I can tell you that I have it working here. The only cafeat is that it takes a long time to perform anythig on that object (due to finding it 1st).



    ------------------
    AJ Alhait
    BetaSoft Inc.
    AJ Alhait
    BetaSoft Inc.

  3. #3
    Junior Member
    Join Date
    Oct 1999
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Having trouble with changing tags on motif

    AJ,
    I have tried your suggested approach. Yes it will work, and Yes it is noticeably slow whenever the window in question is referenced.

    I was hoping there was some simple undocumented way of handling this situation like using a wild card concatenated with a unique child's id or something obscure like that.

    Thanks for you fast input.

    John

 

 

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:31 PM.

Copyright BetaSoft Inc.