Fitnesse for Appian - How to read all grid values

Hi All,

I needed help with below question on Grid.

1. Is there any method available to read complete grid values, including the values available in the next page of the grid.
2. How to get the index of a row for a particular value.

Thanks & Regards

Rajesh KV 

  Discussion posts and replies are publicly visible

Parents
  • there is no direct method to verify grid completely.

    One way we can do it by creating a sub routine by passing indexes for columns and rows as parameters.

    the below code is for verifying grid values:
    | verify grid | GRID_NAME or [GRID_INDEX] or GRID_NAME[INDEX] | column | COLUMN_NAME or [COLUMN_INDEX] | row | [ROW_INDEX] | contains | VALUE(S) |

    the below code returns the total number of rows in a grid
    | count grid | GRID_NAME or [GRID_INDEX] or GRID_NAME[INDEX] | rows | Count rows in an editable or paging grid.

    this code for grid navigation:
    | click on grid | GRID_NAME or [GRID_INDEX] or GRID_NAME[INDEX] | navigation | NAV_REFERENCE | ---- Navigates through paging, only takes "first", previous, next, or "last"

    By using above code syntaxes try to apply logic and create sub-routine.
  • Could you please give me an example of how to create a sub routine ?
  • Lets consider i want to go to employee record on site and serach for particular employee and then click on record link.

    !**> Go to Employee record
    !|scenario |go to Employee|empNum |
    |navigate to site|emp |page|emp-summary|
    |search for |@empNum |
    |click on record |@empNum |
    **!

    How to call this sub-routine or scenario is
    |script |
    |go to Employee | Emp001 |

    now sub-routine will search for employee with id Emp001 on a record after navigating to the site.
Reply
  • Lets consider i want to go to employee record on site and serach for particular employee and then click on record link.

    !**> Go to Employee record
    !|scenario |go to Employee|empNum |
    |navigate to site|emp |page|emp-summary|
    |search for |@empNum |
    |click on record |@empNum |
    **!

    How to call this sub-routine or scenario is
    |script |
    |go to Employee | Emp001 |

    now sub-routine will search for employee with id Emp001 on a record after navigating to the site.
Children