SPONSORS:






User Tag List

Results 1 to 6 of 6
  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)

    Caption Information !!

    Where does SilkTest gets the information about Caption.
    In other words how does it know what the caption of i.e. of a textfield. Since that information is not provided in the source code.

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

  2. #2
    Senior Member
    Join Date
    Aug 1999
    Location
    San Diego, CA USA
    Posts
    219
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Caption Information !!

    if I recall correctly, SilkTest uses the actual text of what it "thinks" is the label for the TextField. By "think" I mean for a TextField the label should be to the left of the TextField if standard UI prqctices are being followed.

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

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

    Re: Caption Information !!

    Thanks for the info.
    So if there is no label/Text on the left of the textfield there shouldn't be a caption for that textfield.Is that correct?

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

  4. #4
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Caption Information !!

    Silk will always apply a name to each object it sees. As a default for a truely unlabeled object it'll use a variant of the objects' class name.

    While it has changed slightly over the years, Silk has always used a left to right, top to bottom association to determine what it will call each object it encounters. As you've probably noticed, the results of this simple algorithm are not always perfect.

    The quickest way for you to determine which declared name applies to which object is to compile the output of a Record/Window Declarations operation, then open Record/Window Identifiers and point your mouse cursor at each object.


    John


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

  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: Caption Information !!

    the text wouldn't have to be to the left; could be above the control.

    it would be extremely unlikely that a developer would want to create a text field with no label to the left or above it -- the user wouldn't know what to do with the control.

    per Segue user's guide: the caption tag is "The caption or label as it appears to the user." the prior text tag is "Closest static text above or to the left of the object. Prior text tags begin with the ^ character."

    AG

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

  6. #6
    Senior Member
    Join Date
    May 2002
    Posts
    448
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Caption Information !!


    Silk test when identifying "Captions" always searches for what Segue calls qualifier text. The text can be placed to the right, left, above or below the control.

    However in some apps that we have tested we had a funny observation. When we recorded the window delclarations some of the controls e.g. textfields did not have the logical identifiers that should have been the case i.e, the caption of the textfields was not the static text that was closest to the control. Instead it was the name of the Frame that enclosed the control. And sometimes it was the pagelist name to which the control belonged.

    This way we concluded that for Silk to accept the static text as the qualifier text, the static text has to be in some permissible limits of the control. (someone said it was fixed in pixels, debatable however ...)

    In total absence of the qualifier text, it then accepts either the name of the frame if any or the page that encloses the control. If all these are absent then Silk refers to these objects by the control tag or Index.


    ------------------
    never say die
    Life, that dares send, A challenge to his end,
    And when it comes say, Welcome friend.

 

 

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 12:21 PM.

Copyright BetaSoft Inc.