Hello,
I am using a RadGridView in my WPF application. The RadGridView is filled dynamically, so there might be a different amount of rows every time the test runs. The columns can be reordered.
The test needs to check a specific cell that is identified by its column header and a value in another cell of that row.
Example RadGridView data:
Name | City | Workload in hours
-------------------------------------------
Foo Bar | LA | 45
John Doe | NY | 20
Now I would like to check the values for "Workload in hours" with a data driven test.
Example data source for the data driven test:
Name | Workload in hours
-------------------------------
John Doe | 20
I can't say for sure in what row "John Doe" is since there might be more or less rows in the table. I also can't say if the column is always the third because it might be in another order.
But I do know that I need:
"cell
in COLUMN 'Workdload in hours'
in ROW where COLUMN 'Name' is <data driven value 'John Doe'>"
I would like to check if the value inside of that cell matches the data source or do further testing with the row or cell (for example: right click on that cell to edit the person's data in another view).
Since I use both Telerik control and Telerik Test Studio there should be a way to achieve this without the need to code every step in the RadGridView.
For the solution it would be okay if I...
...add a function to the grid (in the WPF solution) that is called by Telerik Test Studio to get the needed cell for further testing.
...create a "Test As Step" that returns the cell AND that can be reused for different tests.
...use a test step element that takes parameters (data driven) and returns a cell.
It would NOT be okay to write a new "Coded Step" for every interaction with a RadGridView because there are lots of RadGridViews.
I am using a RadGridView in my WPF application. The RadGridView is filled dynamically, so there might be a different amount of rows every time the test runs. The columns can be reordered.
The test needs to check a specific cell that is identified by its column header and a value in another cell of that row.
Example RadGridView data:
Name | City | Workload in hours
-------------------------------------------
Foo Bar | LA | 45
John Doe | NY | 20
Now I would like to check the values for "Workload in hours" with a data driven test.
Example data source for the data driven test:
Name | Workload in hours
-------------------------------
John Doe | 20
I can't say for sure in what row "John Doe" is since there might be more or less rows in the table. I also can't say if the column is always the third because it might be in another order.
But I do know that I need:
"cell
in COLUMN 'Workdload in hours'
in ROW where COLUMN 'Name' is <data driven value 'John Doe'>"
I would like to check if the value inside of that cell matches the data source or do further testing with the row or cell (for example: right click on that cell to edit the person's data in another view).
Since I use both Telerik control and Telerik Test Studio there should be a way to achieve this without the need to code every step in the RadGridView.
For the solution it would be okay if I...
...add a function to the grid (in the WPF solution) that is called by Telerik Test Studio to get the needed cell for further testing.
...create a "Test As Step" that returns the cell AND that can be reused for different tests.
...use a test step element that takes parameters (data driven) and returns a cell.
It would NOT be okay to write a new "Coded Step" for every interaction with a RadGridView because there are lots of RadGridViews.