Telerik blogs

Latest

  • Productivity Testing

    Mocking Exceptions and Events with JustMock Free Edition

    [Cross Posted from http://www.skimedic.com/blog] Mocking Exceptions When writing unit tests, it is important to cover not only the successful execution path (commonly referred to as the “Happy” path), but also test the code that gets executed when things don’t go right (commonly referred to as the “Unhappy” path).  Testing for situations where services or databases are unavailable as well as erroneous user input are important aspects of ensuring quality in software.  Remember, if you don’t test it, your users will! We modify the LoginUser method to throw a custom exception when there is an exception is thrown from the LoginService.  To test this,...
    May 27, 2021 5 min read
  • Productivity Testing

    Automated Testing Tools News: Knowledgebase is now live!

    I am very pleased to announce the introduction of the new WebUI Test Studio Support Knowledgebase. Our support engineer's have been hard at work adding valuable content. Some of the new article topics include: Troubleshooting Misaligned Element Highlighting Creating a Scheduling Server Manually Activating your WebUI Test Studio License Repeating Actions for Multiple Users with Login (using the Test As Step feature) Many more to come! We encourage you to bookmark this site and check back often - it will be a great resource for all things WebUI!
    May 27, 2021 1 min read
  • Productivity Testing

    Sequential and Recursive Mocking with JustMock Free Edition

    [Cross Posted from http://www.skimedic.com/blog] Sequential Mocking One of the trickiest types of code to mock out for testing is recursive methods.  In a typical recursion, the same method is called multiple times, and each time there are typically different parameters passed in, and different return values.  To easily handle this, JustMock gives you two options: Adding InSequence() to each arrange Chaining Returns() calls together. To illustrate the first option, look at the following test: [Test] public void Show_Sequential_InSequence_Arrange_Option() { var service = Mock.Create<IService>(); Mock.Arrange(() => service.GetSum(Arg.AnyInt, Arg.AnyInt)) .Returns(4).InSequence(); Mock.Arrange(()...
    May 27, 2021 3 min read
  • Productivity Testing

    Test Scheduling Updates in 2010 Q3 Service Pack 1

    This week we published the latest official release of our automated testing tools – 2010 Q3 Service Pack. This release enhances product stability by introducing a lot of improvements and bug fixes in many areas. I’d like to focus this post on the latest optimizations and important bug fixes in the Test Scheduling feature. I’ll start with the QA Edition changes. Project Tab Now you can find the following Scheduling commands in the Project Tab.
    May 27, 2021 4 min read