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

Verify count

1 Answer 90 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rizwan
Top achievements
Rank 1
Rizwan asked on 07 Mar 2013, 03:56 PM
Hi 

I am wondering if there is a way to verify the count of an item. 
I have a table with approximately 10 hyperlinks and 1 of the columns is "Number of Owners".
When you click the hyperlink, the user is redirected to another page displaying the Number of Owners.
I would like to create a test where the "Number of Owners" in the table equals the "Number of Owners" upon clicking the hyperlink.
Is there a way to automate this? I want to do this without a visual check.


Thanks
Rizwan

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 08 Mar 2013, 10:34 PM
Hi Rizwan,

This depends on what the “item” is. If it’s an HTML table, we have built in quick verification's for the number of rows and number of columns. We have the same for our RadGrid controls as well. But if you want to do something like verify there are 12 results returned from a search you’ll need to use code. The problem is that Test Studio doesn't understand what a “search result” is. In code we can iterate through the page find the correct items and count them.

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