How to verify multi cells (table)

5 posts, 1 answers
  1. Lin
    Lin avatar
    6 posts
    Member since:
    Feb 2012

    Posted 23 Feb 2012 Link to this post

    Hi.
    We have a table in a website. the table has number, name, description. There is a sort number button.
     After I press the button , the number should be sorted from small to big.
    How can I select several cells and verfiy the number order inside?


    Thank you in advance.
  2. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 23 Feb 2012 Link to this post

    Hello Lin,

    See our code sample article on Verifying Sort Order in a Silverlight DataGrid

    If your application is HTML, you should be able to easily adapt the code to suit your needs.

    All the best,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Lin
    Lin avatar
    6 posts
    Member since:
    Feb 2012

    Posted 24 Feb 2012 Link to this post

    Thank you for your apply.

    Is that I add a coded step in standalone version first? Then copy the code?
    We use visual studio and C# to develop the site.

    My boss ask me to evaluate test studio. So I hope I can make this work.

  4. Lin
    Lin avatar
    6 posts
    Member since:
    Feb 2012

    Posted 24 Feb 2012 Link to this post

    Hi

    We use asp.net mvc and telerik grid control 
  5. Answer
    Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 24 Feb 2012 Link to this post

    Hello Lin,

    First you'll create a web test and record navigating to your site and sorting the grid. You can do this in the Test Studio Standalone version or the VS plugin, whichever you prefer.

    Then you'll add a coded step and adapt the code from the sample article to meet your specific needs. I've written a new sample article based on a Telerik ASP.NET MVC Grid demo, which is just a basic HTML table. See here for the code sample.

    Greetings,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top