Friday, 20 July 2012

Unit Test Automation

NUnit is a unit-testing framework for all .Net languages. Initially ported from JUnit, the current production release, version 2.6, is the seventh major release of this xUnit based unit testing tool for Microsoft .NET. It is written entirely in C# and has been completely redesigned to take advantage of many .NET language features, for example custom attributes and other reflection related capabilities.
NUnit does not create any test scripts by itself. You have to write test scripts by yourself, but NUnit allows you to use its tools and classes to make the unit testing easier. The points to be remembered about NUnit are listed below:
  • NUnit is not an automated GUI testing tool.
  • It is not a scripting language, all test are written in .NET supported language, e.g., C#, VC, VB.NET, J#, etc.
Nunit works by providing a class framework and a test runner application. The class framework allows to write the test cases based on the application and the test is run using the test runner application.
The latest version of Nunit framework and the Help related to it can be downloaded from http://www.nunit.org/index.php?p=download
So far we took a look at unit testing, and NUnit, seeing how easy it was to create automated tests through the help of NUnit. Unit testing with NUnit is useful for testing class libraries that makeup an ASP.NET application, but is not designed to test the UI portions of an ASP.NET application.

No comments:

Post a Comment