next up previous contents
Next: System testing report Up: Module testing reports Previous: Plotter testing results   Contents

FileIO module testing

M-FIO01

  1. The file was opened and data read successfully. The correct integer value was returned.
  2. org.dtrend.DTWFileIOException was thrown as planned.

M-FIO02

  1. the correct float array was returned.
  2. org.dtrend.DTWFileIOException was thrown as planned.

M-FIO03

  1. The file was closed succesfully.
  2. Closing the file before it had been opened was not tested.

M-FIO04

  1. Loading of templates was succesful: DataObject contained the templates after this call. The program crashed with an input file that had <CR>+<LF> at end of the last line. This isn't really an error, because exact file format was not specified. However, the problem was fixed.
  2. org.dtrend.DTWFileIOException was thrown as planned.
  3. org.dtrend.DTWFileIOException was thrown as planned.

M-FIO05

  1. The saving of templates was succesful.
  2. org.dtrend.DTWFileIOException was thrown as planned.

M-FIO06

  1. The loading of observation was succesful.
  2. org.dtrend.DTWFileIOException was thrown as planned.
  3. org.dtrend.DTWFileIOException was thrown as planned.

M-FIO07

  1. The observation time-series was succesfully saved into the specified file.
  2. org.dtrend.DTWFileIOException was thrown as planned.

M-FIO08

  1. The log was written to the specified file succesfully.
  2. org.dtrend.DTWFileIOException was thrown as planned.

Checking for all possible cases where input might be inaccurate was considered inexpedient. Hence the tests were chosen to form cases of normal use and user errors. Each function point was tested (8 of 8) and code coverage can be estimated to reach up to 95% of all code.


next up previous contents
Next: System testing report Up: Module testing reports Previous: Plotter testing results   Contents
2002-03-19