Telerik blogs

Latest

  • Productivity Testing

    Free Weekly 30-minute Workshops On Test Studio

    Test Studio Workshop is our new training initiative - a weekly (you guessed it) workshop. Each session will deal with a specific automation challenge. From seemingly basic to advanced use cases that might require some coding skills. We try to tackle common errors seen with new Test Studio users and shed light on little known but powerful features the product offers. The agenda is as follows: The presenter goes through the main information related to that week's subject in roughly 15 mins. From there we go into Q&A mode. The session is set as 30 mins long but we will ...
    May 27, 2021 2 min read
  • 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