How to validate Grid sorting functionality while recording for silverlight application

8 posts, 0 answers
  1. Sandeep
    Sandeep avatar
    4 posts
    Member since:
    May 2011

    Posted 24 May 2011 Link to this post

    We want to validate the grid sorting functionality, How to verify whether records are sorted in particular order in Telerik Web UI automation process. we are using telerik grid in silverlight application. We would like to do validate each value for that column whether sorting is done perfectly

    Regards,
    Sandeep
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 26 May 2011 Link to this post

    Hi Sandeep,
            you state you're working with a Silverlight application. Is the Telerik Grid in this application a Silverlight GridView or an ASP .Net Grid. If it's an ASP .Net grid then it will be easy. You can add sorting-related verifications by bringing up the orb menu for the GridTableHeaders in the Grid as seen in this video:
    http://screencast.com/t/9budixyo
    We don't have such functionality for a Silverlight GridView so you might need to use a coded solution for a GridView.

    Let me know what you're using.

    All the best,
    Stoich
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. Ira
    Ira avatar
    3 posts
    Member since:
    Jul 2010

    Posted 12 Jul 2011 Link to this post

    Hi Stoich,

    I'm having the same issue but it's with a Telerik RadControl for Silverlight, specifically the GridView. I've tried searching the forums and KB, but found nothing for Silverlight.

    Is there a coded approach that's offered?

    Regards,

     

    Ira

     

  4. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 13 Jul 2011 Link to this post

    Hi Ira,

    Yes this is a very complicated automation problem. I have attached a sample test demonstrating how to validate the sort order that runs against our demo page at http://demos.telerik.com/silverlight/#GridView/RowReorder.

    All the best,
    Cody
    the Telerik team
    Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

    Have you looked at the new Online User Guide for Telerik Test Studio?
  5. Ira
    Ira avatar
    3 posts
    Member since:
    Jul 2010

    Posted 13 Jul 2011 Link to this post

    Not sure what it is I'm missing or done incorrectly, but I'm not able to playback your recording in Test Studio or VS2010.

    I've attached the results of each attempt.  Please advise.

    Thanks,
    Ira
  6. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 14 Jul 2011 Link to this post

    Hello Ira,

    From the log:

    "Unable to find the code behind assembly. Please make sure you have compiled your code behind without errors before attempting to execute the test."

    The VS plugin requires you to manually rebuild the project every time you introduce changes to the code-behind file.

    Greetings,
    Anthony
    the Telerik team
    Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

    Have you looked at the new Online User Guide for Telerik Test Studio?
  7. Ira
    Ira avatar
    3 posts
    Member since:
    Jul 2010

    Posted 15 Jul 2011 Link to this post

    I've tried to build the project in Visual Studio but got the attached error.  Should I be adding references for this to work?

    Also, I've seen threads instructing to compile/build in Test Studio, but have not found anything in TS to support this.  Does this occur automatically at playback/execute?

    Test Studio gives error that compile failed. See attached.

    Can you supply a video exampling what's needed for TS and VS use for this to work properly?
     
    Regards,
    Ira
  8. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 15 Jul 2011 Link to this post

    Hello Ira,

    Here's a Jing video demonstrating how to add assembly references in the Standalone version. We also have a user's guide article on this. Yes, the Standalone version automatically compiles upon execution.

    The VS plugin does not have the Script Options in Project Settings because you can add directly into the References folder under your project. Please see this KB article and ensure no assemblies are missing.

    All the best,
    Anthony
    the Telerik team
    Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

    Have you looked at the new Online User Guide for Telerik Test Studio?
Back to Top