This is a migrated thread and some comments may be shown as answers.

Check for Row not existing in RadGrid

1 Answer 29 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Austin
Top achievements
Rank 1
Austin asked on 18 Jun 2012, 09:27 PM
If I was to test my web app to make sure an item gets deleted from my database.

What is the best way to verify it is no longer in my RadGrid?

Note: this item is added via automation and some numbers in the grid are unique and static throughout each test.

1 Answer, 1 is accepted

Sort by
0
Byron
Telerik team
answered on 21 Jun 2012, 10:00 PM
Hi Austin,

Thanks for trying Test Studio. Our RadControl translators allow you to build verifications against any level of the RadGrid control. You could create a wait for not exists step based on the content of a data grid cell or the entire data grid item. If the index for the item remains constant, this should consistently verify its absence. If the index does not remain constant, but you wish to verify whether it appears on the first page of the grid view (if your control is paginated), you could build a verification against the entire RadGrid control, checking if the innertext contains a particular string. If your control is scrolling, this will verify against the contents of the entire control. 

Kind regards,
Byron
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Austin
Top achievements
Rank 1
Answers by
Byron
Telerik team
Share this question
or