Test sorting on a RadGrid or RadListView?

5 posts, 0 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 23 Nov 2010 Link to this post

    What would the recommended method be to validate sort order on a Grid or List assuming Templated Views?

    Doable?
  2. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 24 Nov 2010 Link to this post

    Hi Steve,

    The approach for validating the sort order of a RadGrid is the same regardless if it is Templated or not. As far as WebUI is concerned it only can see HTML or Silverlight elements. It cannot see the ASP.NET or XAML that may be running on the server that generates the output that is sent to the browser.

    Unfortunately it also a bit complicated and tedious. You have to click the icon to sort the column, then in a coded step read all the values contained in that column and validate their sort order. I have attached a sample test that demonstrates this process that you may use. 

    Greetings,
    Cody
    the Telerik team
    Interested in Agile Testing?

    Tune in Wednesday, December 1st for a very special Webinar focused on Agile Testing. Click here to register for free!
  3. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 24 Nov 2010 Link to this post

    Well yeah, I realize I cant get at the datasource via the site :)  I was hoping though there'd be something built-in with the translators I was missing...

    The problem is I have a Listview-like setup with more of a flow of items instead of a grid in which I can sort a column

    Thanks for the sample :)
  4. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 24 Nov 2010 Link to this post

    Hi Steve,

    I am sorry... but validating sort order via code is the only option at this time. We haven't built in sort validation into our translators. I will log it as a feature request.

    Kind regards,
    Cody
    the Telerik team
    Interested in Agile Testing?

    Tune in Wednesday, December 1st for a very special Webinar focused on Agile Testing. Click here to register for free!
  5. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 24 Nov 2010 Link to this post

    Thanks Cody :)
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!