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.
  • Hi Kondetiv,

    Let me explain you what I'm trying to achieve. Please check attached screen shot. From the below screen shot I would like to search for PLU Request Id - PREQ000020 and click on the link "Review PREQ" which is in beside row of it. In short, I want to get the row index of  PLU Request Id - PREQ000020. So, I can pass that row index as an Input to below method.

    | click on grid | GRID_NAME | column | Task Name | row | [ROW_INDEX] |

    &

    Is there any way to search for PLU Request Id - PREQ000020 even if it is in the next page of Grid.

    Thank You.

  • , unfortunately, we dont any direct method other than passing index i guess.
Reply Children
No Data