SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Sep 2002
    Location
    Rancho Santa Margarita, CA, USA
    Posts
    42
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    MessageBoxes whose caption is the same as the MainWin\'s

    How do you deal with MessageBoxes whose caption is exactly the same as that of the MainWin or your main application's caption?

    For example:
    In your main .inc file, the caption/tag of your AUT (MainWin) is "Test" and an error message that comes up also has its caption/tag as "Test" while running a testcase. SilkTest will error with a message similar to "Test is not unique".

    Thanks.
    Gilbert


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

  2. #2
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MessageBoxes whose caption is the same as the MainWin\'s

    Hey Gilbert,

    We have message box's named WindowMaker and the MainWin is also called WindowMaker. We declared the message box and called it WindowMakerDialog. We do not get any error's when both are invoked.

    ------------------
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  3. #3
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MessageBoxes whose caption is the same as the MainWin\'s

    I do not have that agent option set. it is defaulted to true. I have the message box declared as a DialogBox and the MainWin as MainWin so I guess that is why I don't get the error.

    ------------------
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  4. #4
    Junior Member
    Join Date
    Sep 2001
    Location
    WestBorough
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MessageBoxes whose caption is the same as the MainWin\'s

    Hi Gilbert,

    Either the MessageBoxes can be given a different caption(by developers) OR even it can be declared as MessageBox and give the Generic Message tag for the MessageBox "~ActiveApp/[DialogBox]$MessageBox" so that it would work for all the MessageBoxes in the application which avoids a lot of Maintainance in the long run.

    Also it is good to set
    Agent.SetOption (OPT_VERIFY_UNIQUE, FALSE) in your option set.

    Regards,
    Srini



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

  5. #5
    Member
    Join Date
    Sep 2002
    Location
    Rancho Santa Margarita, CA, USA
    Posts
    42
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MessageBoxes whose caption is the same as the MainWin\'s

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by TonyM:
    Hey Gilbert,

    We have message box's named WindowMaker and the MainWin is also called WindowMaker. We declared the message box and called it WindowMakerDialog. We do not get any error's when both are invoked.

    <HR></BLOCKQUOTE>

    Hi Tony,

    I assume that you have the following set:
    Agent.SetOption (OPT_VERIFY_UNIQUE, FALSE)

    'coz I have this set to TRUE. Am I correct?

    Thanks.
    Gilbert

    Oops...I commented out that declaration for the "Test" message box.




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

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

    Re: MessageBoxes whose caption is the same as the MainWin\'s

    You can also solve this challenge using the ../ in the tag. It forces SilkTest to evaluate the parent / child relationship before matching .Exists().

    See below (all windows have same caption, but are unique):
    Note that you can choose any object as the unique child (e.g. a checkbox, a combo box, a button...)

    Look up "tags: syntax for" in the SilkTest 5.5 SP3 help text for more info...

    ------------------
    Steven Tyler
    SQA Automation Team Manager
    Workforce Central Group
    Kronos Incorporated
    E-Mail: styler@kronos.com
    www.kronos.com
    Improving the Performance of People and Business™
    Steven Tyler
    Manager - Performance Engineering

    Kronos Incorporated
    tel: +1 978 947 4219

 

 

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

Copyright BetaSoft Inc.