SPONSORS:






User Tag List

Results 1 to 6 of 6

Thread: Control ID Help

  1. #1
    Member
    Join Date
    May 2001
    Location
    Rochester, NY, USA
    Posts
    61
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Control ID Help

    Anyone know what the Control ID corresponds to in VB? I have several VB forms that I am trying to test that have a Control ID of $MessageBox - this is causing silk to determine that they are messageboxes and not VB Forms.

    Thanks,
    Steve

    ------------------
    Steven P. Blunt
    Software Automation Technical Lead
    NASG Sales Force Productivity
    Steven P. Blunt
    Software Automation Technical Lead
    NASG Sales Force Productivity

  2. #2
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Control ID Help

    Yeah, for some reason, VB DialogBox objects seem to get the $MessageBox ID. In short, don't use the Control ID for those objects. Use the caption if at all possible. I guess I need to fire up VB and develop an application and see if there's something I can do to the property of the DialogBox to make it not do that with SilkTest.

    - Dave


    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

  3. #3
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Control ID Help

    I just did the same thing: created a little VB application with a DialogBox. Caption of the DialogBox is "Options" and declared as such in my frame file. I don't get any problem on identifying the object.

    Or maybe I'm just not understanding your problem completely.

    - Dave



    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

  4. #4
    Member
    Join Date
    May 2001
    Location
    Rochester, NY, USA
    Posts
    61
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Control ID Help

    Dave,
    I figured out what was wrong. I had to further declare the tag for the MessageBox class. I was using:

    tag "~ActiveApp/$MessageBox"

    and have switched it to:

    tag "~ActiveApp/[DialogBox]$MessageBox"

    This has solved my problem for now. I generally like to use the Control ID rather than the caption though since the Control ID is less apt to be changed in future releases. I would like to figure out what Silk uses to determine the Control ID for the forms and have the developers set the correct properties accordingly. The Control ID (for most objects) is the VB Name of the object that the developers assign. This is only for child objects (command buttons, frames, checkboxes, etc.) and does not appear to be the case for VB Forms however.

    If anyone has any further thoughts, it would be greatly appreciated.

    Thanks,
    Steve

    ------------------
    Steven P. Blunt
    Software Automation Technical Lead
    NASG Sales Force Productivity
    Steven P. Blunt
    Software Automation Technical Lead
    NASG Sales Force Productivity

  5. #5
    Senior Member
    Join Date
    Jul 2001
    Location
    Westford, MA, USA
    Posts
    160
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Control ID Help

    Steven - When trying to resolve which window you're looking at, SilkTest stops at the first match. So if it reads in the window you've declared with the $MessageBox tag, it'll stop there before it even sees the window with the string tag. So take a look at the compile/link order implied by your use statements. After you change the order, you'll be safer to delete all your object files -- the compiler isn't bug-free that way.
    --OOPS -- I guess we both posted at the same time -- I see that further qualifying your tag has fixed your problem. Oh, well.
    AG

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


    [This message has been edited by agroves (edited 12-06-2001).]

  6. #6
    Member
    Join Date
    May 2001
    Location
    Rochester, NY, USA
    Posts
    61
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Control ID Help

    Thanks for your reply dcreed. Unfortunatly using the caption does not work because Silktest misidentifies my form with MessageBox which has a tag of "~ActiveApp/$MessageBox" and thus identifies the form as MessageBox (since it's control ID is $MessageBox as well and it is a child of the activeapp). I created a little VB app to test out which properties Silk uses to determine the Control ID. I will let you know my results.

    Thanks,
    Steve

    ------------------
    Steven P. Blunt
    Software Automation Technical Lead
    NASG Sales Force Productivity
    Steven P. Blunt
    Software Automation Technical Lead
    NASG Sales Force Productivity

 

 

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 07:22 PM.

Copyright BetaSoft Inc.