SPONSORS:






User Tag List

Results 1 to 2 of 2
  1. #1
    Guest

    Verifying static text scaling and fit to boundaries

    We are currently using Silk to validate the correct fit of UI elements within the window boundaries of a non-web based Win9x application. This type of validation is useful for verifying that the bounding rectangles of all controls, bitmaps, or text elements fit within the confines of a parent window or dialog when the Font Size property (Small or Large Fonts) has been changed in the Windows Display Control Panel.

    I would like to extend this capability to include verifying that the text in Static Text boxes, PushButtons, CheckBoxes, etc. is correctly scaled up/down for the selected Font Size setting, and that the text fits within the bounding rectangle of the control it is associated with. This would also be useful for validating the "fit" of text to controls when an application is localized (think German).

    Silk does not appear to provide support for determining the font scaling of text, or the text "fit" to a control's bounding rect. Any suggestions on how to obtain this information (Win API calls, external tools, etc.) is greatly appreciated.


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

    Tony Mrozinski
    Sr. Software Test Automation Engineer
    Home Networking Operations
    Intel Corporation

  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: Verifying static text scaling and fit to boundaries

    Hi Tony,

    I think this one's tough to automate. You can always do a bitmap compare, but this requires you think the display passes. It's like asking an automated tool to look at a bitmap and tell you it looks right

    There's a way to get the size of a control such as StaticText, but there's no way of telling the size of the chars inside. This one is better left on the manual testcases list I think Sometimes automating a testcase may not be cost-effective. I think this one falls in that category personally.

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

 

 

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:57 AM.

Copyright BetaSoft Inc.