Telerik blogs

Latest

  • Productivity

    More on Flexible Locators

    Knowing how to create flexible locators is critical to crafting stable tests that will hold up in the long run. The example I use in Telerik’s Online Instructor Led and Team training sessions centers around working with a row from a table. This table, to be precise! Note the grid control has created an ID value for that row – and that ID is completely position-based: ctl00_MainContent_PeopleGrid_ctl00__1. (Look at the row above and below. The IDs all end with “__<number>”.) By default, Test Studio’s recorder will define this row’s locator using that ID value. Normally IDs are ...
    May 27, 2021 4 min read
  • Productivity Debugging

    What&rsquo;s new in Fiddler 2.4.1.1

    I’ve been working on several exciting enhancements since I moved to develop Fiddler full-time last month. Major work is underway to improve Fiddler and the Fiddler website, based in part on feedback we’ve received from the poll on the Fiddler homepage.In today’s post, I’d like to quickly point out a few minor improvements in the current release version that you might have overlooked.Composer ImprovementsFiddler’s Composer enables you to create and issue a HTTP(S) request, either from scratch, or by dragging in a prior request from the Web Sessions list. The Composer is especially useful for testing ...
    May 27, 2021 3 min read
  • Productivity

    Mocking LINQ Queries

    Unit testing LINQ queries can be really challenging. This requires a deep knowledge of how LINQ queries work and how they filter results based on predicate values.  While I am adopting test first development approach, it is most likely that I want to verify the behavior of a query for correctness. In this post, I will show how easy it is to mock a LINQ query using JustMock for a given context. First, let me build up the context with a simple entity class for Employee that has two properties: Next, I created a dummy context that inherits the LINQ to SQL...
    May 27, 2021 2 min read
  • Productivity

    Abstracting Dependencies with JustMock

    Unit tests are most effective when the System Under Test is isolated from its dependencies.  The best way to isolate your code (and make your code more SOLID) is through dependency injection. But even if you follow the rules of SOLID and inject all of the necessary dependencies in as interfaces, you are still faced with the fact that you depend on them. In order to test your code, something concrete has to be passed into the code in order for it to even compile.  Your production code will most likely use a factory to create concrete instances of the dependent interfaces, but that...
    May 27, 2021 4 min read
  • Productivity Reporting

    The Telerik Report Designer: More Powerful Than Ever Webinar

    Slides, Source Code and Video to the "The Telerik Report Designer: More Powerful Than Ever" Webinar Now Available We want to thank you all for attending the Telerik Reporting Webinar. As promised, all of the materials are now available for you to download and explore on your own. If you have any questions, please feel free to leave a comment below. We also suggest that you download Telerik Reporting and the new standalone Report Designer if you haven’t already done so. For Those Who Couldn’t Attend, What is the Telerik Reporting? Telerik Reporting is a lightweight reporting solution for all .NET cloud, web, and...
    May 27, 2021 7 min read