Assignment 4

CpSc 873

Class Tests from Specifications

 

Functional testing is testing a software product based on knowledge of what it is supposed to do. This knowledge is typically gained from the specification for the product whether it is a complete system or a component.

  1. Download the DotUnit zip file. Install DotUnit.
  2. Download the classes under test.. Unzip
  3. The download includes a .Net project file. Open the project in Visual Studio .NET.
  4. Update the project to have a reference to the DotUnit dll. Do this by removing the current reference to DotUnit and then add in a reference to the new location.
  5. Design tests using the specification given in Figure 5.3 in the text.
  6. Write and compile the test methods in VelocityTest.cs.
  7. Use the Windows Explorer to go into the directory where you installed DotUnit. Go into bin/DeBug. There you will find  DotUnit.exe. Double click on this and it will run. When it runs you can select which test class for it to use. Choose the one you just compiled. The test class that you compile is not an executable. There is nothing wrong with the installation of Visual Studio or of DotUnit. You must begin execution with DotUnit not with VelocityTest.
  8. Observe the results and analyze the results.
  9. Add tests based on the previous results.
  10. Write-up the results in a test report following the format discussed in class.

 

Submit: The VelocityTest.cs class and your test report

This is a two person team assignment.

Due: February 12, 2003 prior to 4 pm in the dept office.

Points: 2