SPONSORS:






User Tag List

Results 1 to 7 of 7
  1. #1
    Senior Member
    Join Date
    Nov 2001
    Location
    UK, Oxford
    Posts
    150
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is Silktest selectively colour blind?

    In the java app I'm testing there are lists whose list-items change colour to reflect context. I have to track and verify these changes in my testcases.
    The methods for JavaJFCListBox are fairly limited and so I printed out the properties using the GetPropertyList method:
    Rect
    Enabled
    Contents
    SelIndex
    SelText
    Style
    $ValueIsAdjusting
    $FixedCellWidth
    $FixedCellHeight
    $SelectionForeground
    $SelectionBackground
    $VisibleRowCount
    $SelectionMode
    $SelectedIndices
    $SelectedIndex

    Not much help there.
    How do you verify the colour of list items?
    JavaJFCTextField has properties
    $SelectedTextColor
    $DisabledTextColor
    although curiously no $TextColor.
    More disturbingly, I've been asked to track syntax highlighting in a JEditorPane which Silktest recognizes as a JavaJFCTextField.
    Oh dear...
    Is Silktest selectively colour blind?


    ------------------
    Tempus fugit, Carpe Diem, et al

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

    Re: Is Silktest selectively colour blind?

    Take a look at InvokeJava() and captureclass.inc. What you'll be able to access in you app' is controlled by your engineering group. Ask them for assistance.

    John


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

  3. #3
    Senior Member
    Join Date
    Nov 2001
    Location
    UK, Oxford
    Posts
    150
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Is Silktest selectively colour blind?

    I thought that might be the answer.
    Who is being lazy here, me or Segue...?

    OK, fair enough!

    ------------------
    Tempus fugit, Carpe Diem, et al

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

    Re: Is Silktest selectively colour blind?

    Not my thought at all actually, although I definitely considered that of Segue (NOT as a friendly jab at the time, either) when they first implemented HTML and Java support.

    Segue's support was and is expedient; they cover what most likely will be used. Under previous systems the use of custom classes was pretty rare. Now it's virtually a requirement for any Silk programmer. Unfortunately this aspect can be a rather difficult and complex work item which serves to compound the already steep learning curve and increases the potential for failure.

    You're now on the bleeding edge where you must work directly with engineering to convince/cajole them into supplying you with information and possibly even custom commands that'll support your automation efforts. It'll keep you challenged.

    John


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

  5. #5
    Senior Member
    Join Date
    Jun 2000
    Location
    Chicago, IL USA
    Posts
    383
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Is Silktest selectively colour blind?

    I once had a similar problem and had a rather inelegant solution that proved to be fairly robust.

    I used the SilkTest method GetBitmapCRC() on tiny (6x6 pixel) rectangles in the corner of the areas that I wanted to color test.

    Note that the value returned by GetBitmapCRC depends on the color depth setting of your video card, so it is best if you COMPARE colors appearing in different areas or different times to see if the CRCs match.

    This will tell you when the color changes.


    ------------------
    Rob Kapteyn


    [This message has been edited by RobKapteyn (edited 07-15-2002).]
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

  6. #6
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Is Silktest selectively colour blind?

    I've used Rob's method in the past as well, but I've tried to use a 1x1 bitmap, reducing the chance of mismatch.

  7. #7
    Member
    Join Date
    Nov 2001
    Location
    Mainz - Germany
    Posts
    92
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Is Silktest selectively colour blind?

    John, what were your experiences with 1x1 bmps?
    Did Bitmap_compare work well?
    I'm trying to compare 1x1 bmps since hours and
    hours, but Silk allways returns hits, regardless
    of whitch color the baseline-bmp is. I'm getting
    stupid...

 

 

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

Copyright BetaSoft Inc.