Fitnesse - How to retrieve particular value from the Grid and assign it to the particular variable for validation? How can I compare two values ? Is there a way to use if condition here ?

 How to retrieve particular value from the Grid and assign it to the particular variable for validation? How can I compare two values ? Is there a way to use if condition here ?

In a below screenshot there are two columns Old value and New Value those I want to compare with the previous values.

  Discussion posts and replies are publicly visible

Parents
  • use below to get the value fron grid and store it in variable name.
    |$variabename=|get grid |GRID_NAME or [GRID_INDEX] or GRID_NAME[INDEX] |column |COLUMN_NAME or [COLUMN_INDEX]|row |[ROW_INDEX] |value |

    then use below to verify if the value is available in the grid. (replace VALUE with variablename)
    |verify grid |GRID_NAME or [GRID_INDEX] or GRID_NAME[INDEX] |column |COLUMN_NAME or [COLUMN_INDEX]|row |[ROW_INDEX] |contains value|VALUE |
Reply
  • use below to get the value fron grid and store it in variable name.
    |$variabename=|get grid |GRID_NAME or [GRID_INDEX] or GRID_NAME[INDEX] |column |COLUMN_NAME or [COLUMN_INDEX]|row |[ROW_INDEX] |value |

    then use below to verify if the value is available in the grid. (replace VALUE with variablename)
    |verify grid |GRID_NAME or [GRID_INDEX] or GRID_NAME[INDEX] |column |COLUMN_NAME or [COLUMN_INDEX]|row |[ROW_INDEX] |contains value|VALUE |
Children