Utilizing your .NET Projects Automated Acceptance Tests on Crystal Reports

May 31, 2008 – 2:00 pm

Utilizing your .NET Projects Automated Acceptance Tests on Crystal Reports - Part 1
In this first part of the series, Eric shows how to use automated acceptance testing against Crystal Reports using the object model. After providing the requirements, he examines how to utilize automated acceptance tests with reports along with sample code to validate the report. He concludes the article by providing a structure of the report settings.
Eric Landes

html in a form
Hi everyone, I do not know what I am looking at …. http://mymatmaker.com/Pricing.html the drop down menus are the problem. 1st …. the single mats: if I make an order and then continue shopping all my quantities are gone, makes me think I lost my present order. Then if I ordered 10 5 x 7’s in…

Ruby on Rails on .NET
Microsoft’s John Lam reports: IronRuby dispatched some simple requests through an unmodified copy of Rails a few days ago. Today, we re going to show off our progress live at RailsConf. He adds that performance is terrible; so you might not want to migrate your project just yet. Why bother? Ma…
tim

Utilizing your .NET projects Automated Acceptance Tests on Crystal Reports - Part 2
In the second part of this series, Eric shows how to automatically incorporate testing report output from your crystal reports using Fitnesse and Visual Studio 2008. After providing a short overview, he examines the need for testing values and outlines the required steps to build a Fitnesse test. He also deeply analyzes the code sample along with the screenshot of the final output.
Eric Landes

Silverlight NUnit Projects

I’ve been doing some experiments to find out if it’s possible to execute NUnit on a Silverlight project. I knew that Visual Studio 2008 and Expression Blend both host Silverlight for use in the designer window. It turns out that rather than host a separate instance of the CoreCLR, the designer simply loads the Silverlight assemblies into the host runtime. This simplifies the business of creating a compatible unit testing framework considerably!

With a little bit twiddling, I’ve managed to tweak the ‘nunit.framework’ assembly so that it’s compatible with Silverlight projects. In order for your tests to execute successfully, you also need to ensure that all Silverlight assemblies (except ‘mscorlib’) are set to ‘Copy Local: True’. After this is done you can run, debug and even do code coverage on your Silverlight unit tests!

Because creating one of these projects is a fiddle to set up, I’ve created Silverlight NUnit Project template that does the work for you. To install the template simply open the ‘SilverlightNUnitProject.vsi’ file and ignore the unsigned content warning. Once installed, you will find it under the ‘Visual C# / Silverlight’ section of the ‘New Project’ dialog. You can download the template from here.

SilverlightNUnitProject 

To execute one or more unit tests you should use ‘Run Test(s)’ rather than ‘Test With > Silverlight’.

RunTests

In summary you now have 3 options when testing Silverlight projects.

  1. For unit testing you can create a Silverlight NUnit Project and use the usual TestDriven.Net commands.
  2. For integration testing (within the context of a browser) you can use the Silverlight Testing Framework.
  3. For spelunking individual methods inside the CoreCLR you can use ‘Test With > Silverlight‘.

I’d be interested to hear how you get on.

You must be logged in to post a comment.