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.
- Download
the DotUnit
zip file. Install DotUnit.
- Download
the classes
under test.. Unzip
- The
download includes a .Net project file. Open the project in Visual Studio
.NET.
- 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.
- Design
tests using the specification given in Figure 5.3 in the text.
- Write
and compile the test methods in VelocityTest.cs.
- 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.
- Observe
the results and analyze the results.
- Add
tests based on the previous results.
- 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