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

How to verify multi cells (table)

4 Answers 137 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lin
Top achievements
Rank 1
Lin asked on 23 Feb 2012, 01:20 PM
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.

4 Answers, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 23 Feb 2012, 06:34 PM
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
0
Lin
Top achievements
Rank 1
answered on 24 Feb 2012, 02:41 PM
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.

0
Lin
Top achievements
Rank 1
answered on 24 Feb 2012, 02:58 PM
Hi

We use asp.net mvc and telerik grid control 
0
Accepted
Anthony
Telerik team
answered on 24 Feb 2012, 06:42 PM
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
Tags
General Discussions
Asked by
Lin
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Lin
Top achievements
Rank 1
Share this question
or