Uploaded image for project: 'Qt Quality Assurance Infrastructure'
  1. Qt Quality Assurance Infrastructure
  2. QTQAINFRA-6277

Squish KTable extension not providing correct content and tooltip for the selected cell when using a picker in the debug mode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • unversioned
    • Quality Assurance
    • None

    Description

      When debugging in the Squish test of a Java application with KTable, the content and tooltip of a cell provided by the picker to inspect a cell are wrong. When you click the cell on the row 0, col 1 you will get the content of the cell row 1, col 0. Even worse is when the table is not diagonal, you will get NPE.

      The root cause of this is:

      The provided squishextktable.zip on  this page (https://kb.froglogic.com/squish/java/howto/widget-plug-ins/) contains code error:

      The getContent and getToolTip function in the Cell.java are wrong. It should be getContentAt( column, row ) / .getTooltipAt( column, row )  instead of (row, column). See https://github.com/lantianjialiang/eclipse-plugins/blob/master/com.google.code.t4eclipse/src/de/kupzog/ktable/t4eclipse/KTableModel.java#L51 for the definition.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jujokini Jukka Jokiniva
            ywu Yong Wu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes