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

How to verify the content of new rows in telerik's grid

1 Answer 80 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ignacio
Top achievements
Rank 1
Ignacio asked on 17 Aug 2012, 07:28 PM
Hello,

I'm new in automation and I'm having troubles with something. I hope someone can help me out here.

I'm having troubles while trying to verify the content of a row after creating it. My issue is that after creating a new "thing" the grid generates a row with a dinamic ID and I can't verify if the "thing" was created or not because I don't know how to locate the row that was created.

Thanks in advance,
Ignacio



1 Answer, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 22 Aug 2012, 11:54 AM
Hi Ignacio,

What type of Telerik Grid are you verifying, HTML or Silverlight? Are non-coded steps failing on playback against the Grid? If, it's possible that you need to change the Find Logic for the elements associated with the failing steps. Each element in the Test Studio Elements Repository has Find Logic associated with it. Depending on what this logic is based on - it may become invalid when you add new items into your grid. Checkout the following article:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/elements-pane-overview/find-element.aspx

Also please check out the following article which will give you a basic idea of how to access grid elements in code:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/html/dynamic-grid.aspx

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