Telerik blogs

Latest

  • Productivity

    Mocking MessageBox.Show with JustMock

    Using JustMock Commercial Edition you can easily mock out calls to MessageBox.Show().  This can come in handy if you are testing code that bases its execution path on a MessageBox’s result. Also, it is unlikely you want the MessageBox to actually pop up while running your tests.  Let’s see how we can accomplish this!  The Basics [TestMethod] public void MOCK_MESSAGEBOX_RESULT() { bool called = false; DialogResult expected =...
    May 27, 2021 3 min read
  • Productivity

    Setting advanced runtime options

    There are various properties that govern how the OpenAccess ORM runtime behaves. The default values for these settings usually suffice for most situations. In case you need to tweak some settings, this can be done via the ‘Backend settings’ tab in the ‘Model settings’ dialog available in the Visual Studio designer. These options are broadly divided into 4 categories (here you can find more information about this dialog and the settings available): Runtime configuration Tracing & logging Second level cache Connection pool When any setting is changed in this dialog and the .rlinq file is saved, OpenAccess generates the appropriate code to set...
    May 27, 2021 2 min read
  • Productivity Testing

    Limit Step Execution by Browser.....AND VERSION.

    So here it is, the first post about what is coming in the forthcoming R1 2011 Test Studio release. You can now set test steps to execute against specific browsers and even specific versions of those browsers. To run a test only against Internet Explorer 9, simply select the test step, adjust the 'RunAgainst' property to 'InternetExplorerOnly', then set the 'RunsAgainstVersion' property to '9' and lastly 'RunsAgainstVersionCompare' to 'Equals'. That's all there is to it - the step will now be executed when you playback in IE9, however it will be ...
    May 27, 2021 1 min read
  • Productivity Testing

    Automating Sitefinity 4 with Telerik Test Studio

    As you can imagine, we use a lot of our own products internally - all our teams use our Agile Project Management software, Team Pulse; Sitefinity uses our ASP.NET AJAX tools, ORM and RadControls for Silverlight and Test Studio for automated functional and regression testing; Test Studio uses ORM, RadControls for WPF - and this does not even begin to touch upon the collaboration and cross product use here at Telerik. Well - why not showcase this - why not show how well the Telerik suite of tools can work together to boost your teams productivity? We thought we would start ...
    May 27, 2021 1 min read
  • Productivity Reporting

    How To: Telerik Reporting in Microsoft LightSwitch Beta 2

    Similar to my previous post, I've made small example to illustrate how to use Telerik Reporting in Microsoft LightSwitch Beta 2. 1) Create new LightSwitch project and add new screen:  
    May 27, 2021 1 min read