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

Validating New Row Added to Grid

1 Answer 24 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
CSPAZ
Top achievements
Rank 1
CSPAZ asked on 27 Mar 2014, 06:00 PM
I am farily new to using Test Studio and am curious as to how I can validate when a new row of data is added to a grid in my Java application.

The application consists of two panes.  The left pane is a data grid and the right pane is for data entry.  I enter data in the right pane and click "Save."  This creates a new row in the left pane.  How do I validate that the new row has been added to the grid in the left pane and then validate the values in the cells of that new row?

Any help would be great appreciated :)

Thanks.

Chris

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 01 Apr 2014, 05:13 PM
Hi Chris,

How to verify that a row was added depends on the HTML that displays the table. It it's a standard HTML Table we have a built-in row count verification you can use, as shown in the attached screen shot. It it's not a standard HTML table, then it may require a couple of lines of code to count how many rows there are and verify the count equals the expected count, or grab a count before adding the row, save the count add the row and verify the new count is +1.

Verifying the content of the row is usually a simple text verification.

Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
CSPAZ
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or