Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    TileGrid automation

    We are in the process of automating tilegrids, particularly the number of tiles per row and the number of rows. I've found that the number of rows that we have come to know with listgrid does not mean the same thing for tilegrids. In tile grids, this means the total number of tiles - which, depending on how you look at it, makes sense.

    So, how can we test the number of ACTUAL rows the tile grid is showing? I've looked through the API and can only find tilesPerRow but we would like to verify the number of rows generated.

    #2
    We're not sure how you're detecting "rows" - it sounds like you are actually looking at the total number of records via something like tileGrid.data.getLength(). It's true that the TileGrid does not change the number of Records, it just displays multiple Records per visual row.

    You can check the current number of rows of tiles being displayed by dividing the number of records by tilesPerLine.

    Comment


      #3
      For listgrid we were using listgrid.data.totalRows

      Doing the calculation ourselves does not entirely test whether the UI is showing the right number of visual rows...which I guess is the same thing as asking the listgrid its total number of rows.

      ANyway, we've decided the only important thing to test is how many tiles are being shown per line. Thanks.

      Comment


        #4
        Well, you could use getTile() and test the onscreen coordinates, but that would be sort of like testing a feature of our product (that we are getting coordinates right) rather than a feature of your app per se.

        Comment

        Working...
        X