Qc2 Acceptance Test File

This document describes the set of tests prepared to support the acceptance of Qc2 software prior to its deployment on the operational system.

These tests are not be run on the operational system. The tests are designed for use on a test database that is, for example, posted on a virtual machine. Test data is generated in the database for the running of the tests as well as other modification to the test database as required.

Alert

Various test data files and configuration files are stored in the wiki for easy discovery. The wiki often converts filenames to a default lower case. The documentation may say “ALG001.cfg” and downloading the corresponding file one may end up with “alg001.cfg”. Please correct the case as required when running each test. In contrast the subversion repository keeps the case intact.

Prerequisites

The Test environment is in place. For example:

Dedicated virtual machine is set up with the kvalobs database installed (internal link): kvalobs installation

The software is the installed either by:

Built from the trunk distribution Qc1 and Qc2 together

Installed from a generalised package (e.g. debian package) that included both Qc1 and Qc2 [TBD]

Qc1 is installed already or separately and Qc2 is built and installed from the separate branch.

It is recommended to carry out the acceptance tests on a new virtual machine (therefore all problems found from scratch) or as part of an installation on dev-vm101 (or the latest test machine).

The test cases below are derived from work on dev-vm116 where the installation follows strategy (1) from the above list.

Test Cases

The following test cases are available. Following the linked Short Name will redirect to the full test case.

Qc1 Regression tests are indicated but not included here.

For all errors discovered in running each test please open an anomaly report in BUGZILLA (TBC: Is Bugzilla ready for Qc2?)

Test Case Short Name	Description	Comments
Qc2-INS	Installation of Qc2	Nominally this will be a package delivery of kvalobs and the exisiting Qc1 will be replaced with Qc1 & Qc2
Qc1-REG	Qc1 Regression tests	Perform regression tests for Qc1 to ensure that the old kvalobs system still behaves as expected. (Not documented here, please refer to Qc1 tests documentation)
Qc2-OPE	Basic Qc2 operations	-
Qc2-OPE-RUN	Start and Stop	-
Qc2-OPE-CFG	Parse configuration files	-
Qc2-OPE-LOG	Write and review log files	-
Qc2-OPE-MOD	Setup in basic operational mode	-
Qc2-FLG	Qc2 Flag Test Cases	-
Qc2-FLG-E2E	Run Qc2 and observe the flag changes.	-
Qc2-ALG	Qc2 Algorithm Test Cases	-
Qc2-ALG-001	Redistribution of accumulated preciptation	Test shall include switching between different interpolation methods ...
Qc2-ALG-004	Correction of single point missing hourly temperature	-
Qc2-XXX-YYY	...	...

NB The number suffix in Qc2-ALG-004 refers to the Algorithm Code.