SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jul 2000
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    capturing column heading caption

    Hi, all.
    How can I capture the caption of the column heading in the JavaTable?
    The application under test changes column heading's caption depending
    on various conditions. I need to make sure that change occurs.
    Thanks in advance,
    Konstantin

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

    Re: capturing column heading caption

    I have had a similar problem with the JavaJFCTable.
    There is a table class method that is supposed to do this, GetColumnName(Column).

    But it just returns "A", "B", "C", etc. even though my columns have other text.

    Is this what it does for you too ?
    I think Segue just didn't finish this Java class implementation.

    There are complex workarounds for this problem, but I am just waiting for the next version of SilkTest.


    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

  3. #3
    Junior Member
    Join Date
    Jul 2000
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: capturing column heading caption

    Yes, I can get the internal column name using GetColumnName(), but I need to capture the actual text as it appears to the user.
    If you could point me in the direction of these 'workarounds' I would greatly appreciate it.

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

    Re: capturing column heading caption


    First Workaround to try:
    If you are lucky, there is a native Java method connected to the Table that you can
    invoke from SilkTest to return the column names.
    See SilkTest Help on the following:
    "Java Swing Tour", "9 Get native methods for a predefined JFC class"
    and "Record classes for ignored Java objects in applications"
    Capture all of the internal Java methods and invoke each of them from a script to see what they return.
    If you see your column names anywhere, adapt that method.

    Second Workaround:
    Have your developers add a method to the Table that returns the column names.
    Then use that first workaround.

    Third Workaround (if you are desperate):
    Use bitmap recognition techniques.
    Capture a bitmap of the table: Table.CaptureBitmap( "myfile.bmp" )
    then use the "Textract" Utility from http://www.structurise.com/ or the OCR DLL
    from the QA forums download area to decode the text in the bitmap.
    If you have a limited list of possible Column headers you might be able to do
    Bitmap comparisons to see which one has appeared.
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

 

 

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 03:56 PM.

Copyright BetaSoft Inc.