Wednesday, August 4, 2010

Testing

We covered briefly on traditional SDLC (Software Development Life Cycle) and the newer Agile/Extreme Programming Cycle.

For traditional SDLC, testing is done after the product is fully developed.  For Agile programming, testing is done continuously throughout the development cycle.

Testing stages:

Unit testing = (program integration)=> Integration testing => System testing

Unit testing

Unit testing can detect:

–logic errors

–runtime errors

It can be executed on public as well as private methods

It does NOT check compatibility or errors between modules

Program integration

To bring together separate modules into a complete working system

To integrate different sub-systems in a software application

Integration test

To ensure that the integrated system work according to the user requirements

To ensure that codes developed by different programmers are working correctly

Using VS2008 to perform unit testing

MSDN reference:

http://msdn.microsoft.com/en-us/library/ms182523%28v=VS.90%29.aspx

Data driven testing

1. Using csv file:

See our demo.

2. Using excel sheet:

http://blog.decaresystems.ie/index.php/2008/07/01/data-driven-unit-testing-and-excel-in-visual-studio/

3. Using database:

http://blog.maartenballiauw.be/post/2008/02/12/Data-Driven-Testing-in-Visual-Studio-2008-Part-1.aspx

0 comments:

Post a Comment