Verify count

2 posts, 0 answers
  1. Rizwan
    Rizwan avatar
    1 posts
    Member since:
    Jan 2013

    Posted 07 Mar 2013 Link to this post

    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
  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 08 Mar 2013 Link to this post

    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
Back to Top