%vim:set tw=68:
% $Source: /home/bricks/source/greater/cvs/greaterrepository/GREAT-ER-DSS/doc/elbe-dss-greater-testplan.tex,v $
% $Id: elbe-dss-greater-testplan.tex,v 1.2 2004-03-03 11:53:45 silke Exp $
\documentclass[10pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{parskip}
\usepackage{ifthen}
\usepackage{times}

\usepackage{geometry}
\geometry{left=1.0cm,textwidth=19cm,top=0.5cm,textheight=26.5cm}

\usepackage{amssymb}	% for $\square$

\def\CVS$#1: #2 ${\expandafter\def\csname CVS#1\endcsname{#2}}
\CVS$Revision: 1.2 $

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}

%--- Needs to be set:
\newcommand{\elbedssversion}{0.8.7}

%\setlength{\itemsep}{40pt}
%\setlength{\parsep}{40pt}

\lhead{Elbe-DSS \elbedssversion}
\rhead{Test Plan \CVSRevision}

\begin{document}

\begin{tabular*}{0.85\textwidth}{@{\extracolsep{\fill}}*{3}l}
Tester: & Date: \\[1.5ex]
Elbe-DSS Version: &\\[1.5ex]
Python Version: &\\[1.5ex]
Operating System: &\\[1.5ex]
Comments: & \\[8ex]
\end{tabular*}

This test plan can be used to verify that all basic functions of GREAT-ER
in the Elbe-DSS
are working as expected. Each test suite can be carried out on its own, 
so it is not required to perform all tests at once.

Test failures can be reported to the Elbe-DSS bug tracker at

http://www.riks.nl/bugreporting/

stating the version number of this document (\CVSRevision) and the number of
the test that failed. 

\emph{Please note} that this test corresponds to Elbe-DSS version
version \elbedssversion.


\newcommand{\test}[2][0]{

	#2 \dotfill
	$\ifthenelse{\equal{#1}{1}}{\blacksquare}{\square}_{yes}\hspace{5pt}
	\ifthenelse{\equal{#1}{2}}{\blacksquare}{\square}_{no}$
}


\renewcommand{\labelenumi}{\thesection.\theenumi}
\newcommand{\testsection}[2]{
	\section*{\addtocounter{section}{1} Test suite \thesection: #1}
	Prerequisites: #2
	}

%------------------------------------------------------
\testsection{Einzugsgebiet: Point sources}{Open the Elbe-DSS with enabled Model GREAT-ER,
Open the system diagram of 'Einzugsgebiet'}

\begin{enumerate}

\item In the system diagram click on module 'Einzugsgebiet'. Then click on
'Punktquellen'
\test[0]{Does a map pop up showing the discharge points?}

\item Click on tab "`Maßnahmen"'.  Click on "`Kommunale
Abwasserreinigung"'.  Click on "`Ertüchtigung von Kläranlagen"'.

\test[0] {Does a dialog open giving the possibility to change different
parameters of waste water treatment plants?}

\item Choose substance Ammonium. Then choose 'Kläranlage' Gohrau.
\test[0] {Does the 'Abbaurate' show 0.95?}

\item Select to 'Alle mit mehr als...'. Enter number '1'.
\test[0] {Does the 'Abbaurate' show 0.577809?}

\item Change the number of 'angeschlossene Haushalte' to 1000.
\test[0] {Does the 'Abbaurate' change to 0.333025?}

\item Move the bar 'Prozentuelle Erhöhung'.
\test[0] {Does the 'Abbaurate' change to 0.359877?}

\item Now change the number of 'angeschlossene Haushalte' to 10.
\test[0] {Does the 'Abbaurate' change to 0.577575}
\test[0] {Does the slidebar return to 0\%?}

\item Click on 'Berechnen'. 
\test[0] {Does a window open showing the progress of the GREAT-ER
calculation?}

\item In the system diagram of the 'Fließgewässernetz' click on
'Konzentration' and there on 'Karte'.
\test[0] {Are the results of the calculation shown in the rivernetwork}

\item In the dialog 'Abwasserreinigung choose substance 'Bor'. Click on
'Berechnen'.
\test[0] {Does a window open showing the progress of the GREAT-ER
calculation?}

\item Load the rivernetwork by clicking in the systemdiagram on
'Fließgewässernetz', then on 'Konzentration' and there on 'Karte'.
\test[0] {Have the results changed?}

\end{enumerate}
\clearpage

%------------------------------------------------------
\testsection{Rivernetwork}{Close the Elbe-DSS, reopen the Elbe-DSS with
enabled Model GREAT-ER, Open the system diagram of 'Fließgewässernetz'}

\begin{enumerate}

\item Click on 'Digitales Gewässernetz'
\test[0]{Does a map open showing the rivernetwork?}
\test[0]{Is the rivernetwork shown without joined results?}

\item Zoom in using the Zoom operations. Select 'Network operations'. Click
ther on 'Select/edit'. Select a  stretch with the right mouse button
\test[0] {Does a dialog pop up, showing the attrbutes of the selected
stretch?}

\item In the systemdiagramm of Fließgewässernetz Click on 'Konzentrationen'
\test[0] {Does a dialog pop up with the title "`Konzentrationen"'?}

\item Click on "`Karte"'
\test[0] {Does a map open showing the concentrations of Ammonium?}

\item Zoomin to the estuary of the rivernetwork. in section "`Network operations"'
choose button "`Select/edit"'. Click with the right mouse button to the
estuary stretch. 
\test[0]{Does the Konzentrationen-dialog show the ID and concentration of the
stretch?}
\test[0]{Does the concentration correlate to the color in the map?}

\item In the Konzentrationen-Dialog choose substance Bor. Open the
corresponding map. Zoomin to the estuary stretch. Again select it. 
\test[0] {Does the Konzentrationen-Dialog show the same Flusssegment ID?}
\test[0] {Does the Konzentrationen-Dialog show a different concentration?}
\test[0]{Does the concentration correlate to the color in the map?}

\item Select a source stretch of the rivernetwork. In the
Konzentrationen-Dialog change Strecke[km] to 100. click on Diagramm next
to the input field "`Strecke"'.
\test[0] {Does a window pop up showing the concentration profile of
Ammonium from km 0 to km 100?}

\item Change the value in the input field "`Strecke"' to 150.
\test[0] {Does a window pop up showing the concentration profile of
Ammonium from km 0 to km 150?}

%\item Click on the button "`diagramm"' in section "`Summenhäufigkeiten"' of
%the Konzentrationen-Dialog.
%\test[0]{???}

\end{enumerate}

%-------------------------------------------------------------
%%
%%\testsection{Rivernetwork measures}{Open the Elbe-DSS with enabled Model GREAT-ER,
%%Open the system diagram of 'Fließgewässernetz'}
%%
%%\begin{enumerate}
%%\item Click on tabulator 'Maßnahmen'
%%
%%\test[0] {Wasserüberleitung Spree}
%%\test[0] {Wasserentnahme für Landwirtschaft}
%%
%%\end{enumerate}
%%
%%\clearpage
%%
%%\testsection{Scenarios}{Open the Elbe-DSS with enabled Model GREAT-ER,
%%Open the system diagram of 'Einzugsgebiet'}
%%
%%\begin{enumerate}
%%\item Click on tabulator 'Externe Szenarien'
%%
%%\test[0] {Sozioökonomische Szenarien}
%%
%%\end{enumerate}
%%
%%%------------------------------------------------------
%%\testsection{Rivernetwork objectives}{Open the Elbe-DSS with enabled Model GREAT-ER,
%%Open the system diagram of 'Fließgewässernetz'}
%%
%%\begin{enumerate}
%%
%%\item Click on tabulator 'Entwicklungsziele'
%%
%%\test[0] {Guter ökologischer Zustand}
%%\test[0] {Verringerung der Stofffrachten in die Nordsee}
%%\test[0] {Verringerung von Extremabflüssen}
%%
%%\end{enumerate}
%%
%%\clearpage

\end{document}

