%vim:set tw=68:
% $Source: /home/bricks/source/greater/cvs/greaterrepository/GREAT-ERWeb/doc/greaterweb-testplan.tex,v $
% $Id: greaterweb-testplan.tex,v 1.6 2003-06-11 15:06:31 frank 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.6 $

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

%--- Needs to be set:
\newcommand{\greaterversion}{2.0 MS3 release 2003-Jun-06}

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

\lhead{GREAT-ERWeb \greaterversion}
\rhead{Test Plan \CVSRevision}

\begin{document}

\begin{tabular*}{0.85\textwidth}{@{\extracolsep{\fill}}*{3}l}
Tester: & & Date: \\[1.5ex]
Server: & Operating System: & \\[1.5ex]
GREAT-ER API Version: & Python Version: & Zope Version \\[1.5ex]
Client: &  Operating System: & \\[1.5ex]
Browser with Java VM: & & \\[1.5ex]
Comments: & & \\[8ex]
\end{tabular*}

This test plan can be used to verify that all basic functions of GREAT-ERWeb 
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 GREAT-ER bug tracker at

http://great-er.intevation.org/bugtracker.html

stating the version number of this document (\CVSRevision) and the number of
the test that failed. Please assign bugs to the area GREAT-ERWeb.

\emph{Please note} that this test corresponds to GREAT-ERWeb
version \greaterversion.


\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{Startup/Authentication}{Open the GREAT-ERWeb web page}

\begin{enumerate}

\item Check the application window.
\test[0]{The window title bar displays 'GREAT-ERWeb 2.0'?}
\test[0]{The Status box display the GREAT-ER logo? User is 'Anonymous'?}
\test[0]{The Dialog and the Map box are empty?}

\item Check the Menu Box.
\test[0]{The Session Menu displays only 'New Session', 'Open Session', 
         'Edit Session' and 'Close Session'?}
\test[0]{The Substance Menu displays only 'New Substance', 'Open Substance'
         and 'Edit Substance'?}
\test[0]{The Catchment Menu displays only 'Open Catchment'?}
\test[0]{The Model Menu displays only 'Edit Mode Params',
   	'Run Simulation', 'Stop Simulation' and 'Check Status'?}
\test[0]{The Analysis Menu displays only 'PEC initial' and 
   	'PEC catchment'?}
\test[0]{In the Menu box only 'New Session', 'Open Session', 'Login' and
	'Help' are active?}

\item Select 'Login'
\test[0]{Does the Login dialog appear?}

\item Go through the dialog components with the 'TAB'-Key.
\test[0]{Are the components cycled in reasonable order?}

\item Select 'Open Session' from the Session Menu
\test[0]{Does the dialog display properly?}

\item Select 'Login' again. Enter correct database, correct username and
	wrong password, press 'Login'.
\test[0]{Does an error dialog say 'Authentication failed'?}

\item Select 'Login' again. Enter wrong database, correct username and 
	correct password, press OK.
\test[0]{Does an error dialog say 'Authentication failed'?}

\item Select 'Login' again. Enter correct database, correct username 
	and correct password, press OK.
\test[0]{Does a dialog confirm successful authentication?}

\item Check the status box.
\test[0]{Does the first field now display the user name?}

\item Check the Menu box.
\test[0]{The Session Menu displays only 'New Session', 'Open Session', 
         'Edit Session', \\
	 'Save Session', 'Save Session As', 
  	 'Close Session' and 'Delete Session'?}
\test[0]{The Substance Menu displays only 'New Substance', 'Open Substance'
         'Edit Substance', \\
	 'Save Substance' and 'Delete Substance'?}
\test[0]{The Catchment Menu displays only 'Open Catchment'?}
\test[0]{The Model Menu displays only 'Edit Mode Params',
   	'Run Simulation', 'Stop Simulation' and 'Check Status'?}
\test[0]{The Analysis Menu displays only 'PEC initial' and 
   	'PEC catchment'?}
\test[0]{Only 'New Session', 'Open Session', 'Delete Session',
'Logout' and 'Help' are enabled?}

\item Select 'Logout'.
\test[0]{Does a dialog confirm successful logout?}
\test[0]{Does the status box display the user 'Anonymous'?}

\item Check the Menu Box.
\test[0]{The Session Menu displays only 'New Session', 'Open Session', 
         'Edit Session' and 'Close Session'?}
\test[0]{The Substance Menu displays only 'New Substance', 'Open Substance'
         and 'Edit Substance'?}
\test[0]{The Catchment Menu displays only 'Open Catchment'?}
\test[0]{The Model Menu displays only 'Edit Mode Params',
   	'Run Simulation', 'Stop Simulation' and 'Check Status'?}
\test[0]{The Analysis Menu displays only 'PEC initial' and 
   	'PEC catchment'?}
\test[0]{In the Menu box only 'New Session', 'Open Session', 'Login' and
	'Help' are active?}

\end{enumerate}

\clearpage
%------------------------------------------------------
\testsection{Session Management - Anonymous User}{
	Connect to GREAT-ERWeb.}

\begin{enumerate}

\item Check the Status box:
\test[0]{User is 'Anonymous'}

\item Select 'New Session'
\test[0]{Does the 'New Session' dialog appear?}

%\item Cycle through the dialog components with the 'TAB'-Key.
%\test[0]{Are the components cycled in reasonable order?}
%
\item Press Cancel.
\test[0]{Does the dialog end properly?}

\item Select 'New Session'. Enter ONLY a comment and press OK.
\test[0]{Does an error dialog come up?}

\item Select 'New Session'. Enter a name and a comment, and press OK.
\test[0]{Is the successful creation of a new session confirmed?}
\test[0]{The status box displays 'GREAT-ER', the user name, 
	the entered title and 
	'no substance' and'no catchment'?}

\item Check the Menu Box:
\test[0]{Session: All items are active?} 
\test[0]{Substance: Only 'New Substance' and 'Open Substance' are active?} 
\test[0]{Catchment: 'Open Catchment' is active?} 
\test[0]{Model: Only 'Edit Model Params' is active?} 
\test[0]{Analysis: No menu items are active?}

\item Select 'Edit Session'.
\test[0]{Does the 'Edit Session' dialog appear?}
\test[0]{Are all values set correctly (including comment)?}

\item Press Cancel.
\test[0]{Does the dialog end properly?}

\item Select 'Edit Session'. Select catchment Don and press OK.
\test[0]{Does the Status Box display 'Catchment: Don'?}
\test[0]{Does the Map Box show the catchment with its river network,
discharge sites and catchment boundary?}

\item Select 'Edit Session'. Select catchment \verb.<.None\verb.>.
and press OK.
\test[0]{Does the Status Box display 'Catchment: --'?}
\test[0]{Is the main window empty?}

\item Select 'Edit Session'. Select catchment Went and press OK.
\test[0]{Does the Status Box display 'Catchment: Went}
\test[0]{Does the main window show the catchment with its river network,
discharge sites and catchment boundary?}

\item Select 'Edit Session'. Select substance Boron and press OK.
\test[0]{Does the Status Box display 'Substance: Boron'?}
\test[0]{Is the menu item 'Run Simulation' enabled?}

% The following is not reasonable for the anonymous user: Closing the session 
% everything is lost without further check.
%
%\item Select 'Edit Session'. Select catchment Don and press OK. Then select
%'Close Session'.
%\test[0]{Does a dialog appear and inform you about potentially lost modifications?}
%
%\item Press Cancel.
%\test[0]{Does the catchment view remain in the main window?}
%\test[0]{Does the Status box still display the session settings.}

\item Select 'Close Session' and confirm closing the session.
\test[0]{Is the Map box empty}
\test[0]{In the Menu box only 'New Session', 'Open Session', 'Login' and
	'Help' are active?}

\end{enumerate}
\clearpage
%------------------------------------------------------
\testsection{Session Management - Privileged User}{
	Connect to GREAT-ERWeb as privileged user.}

\begin{enumerate}

\item Check the Status box:
\test[0]{Is the username you logged in under is displayed.}

\item Check the Menu box:
\test[0]{Only 'New Session', 'Open Session', 'Delete Session', 'Logout' and
	'Help' are active?}

\item Select 'New Session'
\test[0]{Does the 'New Session' dialog appear?}

\item Cycle through the dialog components with the 'TAB'-Key.
\test[0]{Are the components cycled in reasonable order?}

\item Press Cancel.
\test[0]{Does the dialog end properly?}

\item Select 'New Session'. Enter a name and a comment, and press OK.
\test[0]{Is the successful creation of a new session confirmed?}
\test[0]{The status box displays 'GREAT-ER', the user name, 
	the entered title and 
	'no substance' and'no catchment'?}

\item Check the Menu Box:
\test[0]{Session: All items are active?} 
\test[0]{Substance: Only 'New Substance', 'Open Substance' and 
		'Delete Substance' are active?} 
\test[0]{Catchment: 'Open Catchment' is active?} 
\test[0]{Model: Only 'Edit Model Params' is active?} 
\test[0]{Analysis: No menu items are active}

\item Select 'Edit Session'.
\test[0]{Does the 'Edit Session' dialog appear?}
\test[0]{Are all values set correctly (including comment)?}

\item Press Cancel.
\test[0]{Does the dialog end properly?}

\item Select 'Edit Session'. Select catchment Don and press OK.
\test[0]{Does the Status Box display 'Catchment: Don'?}
\test[0]{Does the Map Box show the catchment with its river network,
discharge sites and catchment boundary?}

\item Select 'Edit Session'. Select catchment \verb.<.None\verb.>.
and press OK.
\test[0]{Does the Status Box display 'Catchment: --'?}
\test[0]{Is the main window empty?}

\item Select 'Edit Session'. Select catchment Went and press OK.
\test[0]{Does the Status Box display 'Catchment: Went}
\test[0]{Does the main window show the catchment with its river network,
discharge sites and catchment boundary?}

\item Select 'Edit Session'. Select substance Boron and press OK.
\test[0]{Does the Status Box display 'Substance: Boron'?}
\test[0]{Is the menu item 'Run Simulation' enabled?}

\item Select 'Edit Session'. Select catchment Don and press OK. Then select
'Close Session'.
\test[0]{Does a dialog appear and inform you about potentially lost modifications?}

\item Press Cancel.
\test[0]{Does the catchment view remain in the main window?}
\test[0]{Does the Status box still display the session settings.}

\item Select 'Close Session' and confirm close without any further processing.
\test[0]{Is the Map box empty}
\test[0]{In the Menu box only 'New Session', 'Open Session', 'Delete Session',
	'Logout' and 'Help' are active?}

\item Create a new session with catchment and substance.
\test[0]{Is the session created properly?} 

\item Select 'Save Session'.
\test[0]{Does a message confirm success?}
\test[0]{Is the menu item 'Save Session' disabled?}

\item Select 'Edit Session'. Select substance Boron and press OK.
\test[0]{Is the menu item 'Save Session' enabled?}

\item Select 'Save Session As'. Change name and comment and press Cancel.
\test[0]{Check Status Box: Do the session informations still display
	the old, modified settings?}

\item Select 'Save Session As'. Change name and comment and press OK.
\test[0]{Do the session informations in the Status Box display the 
new settings?}
\test[0]{Does the 'Edit Session' dialog display the new comment?}
\test[0]{Is the menu item 'Save Session' disabled?}

\item Select 'Edit Session'. Select catchment Don and press OK. Then select
'Close Session'.
\test[0]{Does a dialog appear and offers to save the last modifications?}

\item Press Cancel.
\test[0]{Does the catchment view remain in the Map box?}

\item Select 'Close Session' and confirm to close the session.
\test[0]{In the Menu box only 'New Session', 'Open Session', 'Delete Session', 
	'Logout' and 'Help' are active?}

\item Select 'Open Session'.
\test[0]{Does the Open Session dialog appear properly and contain at least
the two sessions saved previously?}

\item Press Cancel.
\test[0]{Is the main window still empty?}
\test[0]{In the Menu box only 'New Session', 'Open Session', 'Delete Session',
    'Logout' and 'Help' are active?}

\item Select 'Open Session', select one of the previously saved
sessions and press OK.
\test[0]{Does the Map box show the catchment?}

\item Select 'Delete Session'.
\test[0]{Does the Delete Session dialog appear properly and show the two
sessions created previously?}
\test[0]{Are only sessions with edit privileges displayed?}

\item Press Cancel.
\test[0]{Does the dialog end properly?}

\item Select 'Delete Session', select the session that is not currently
opened and press OK.
\test[0]{Does a confirmation dialog appear?}

\item Press No.
\test[0]{Does the 'Delete Session' dialog appear again?}
\test[0]{Is the session that is not currently open in the selection list?}

\item Select the session that is not currently opened, press OK, confirm with
OK and select 'Delete Session'.
\test[0]{Has the session that is not currently open been gone from the
selection list?}

\item Select the session that is currently opened and press OK.
\test[0]{Does a confirmation dialog appear stating that the selected
session is the current session?}

\item Press No.
\test[0]{Is the current session still active without any changes?}

\item Enter 'Delete Session' and select the current session. Press Yes.
\test[0]{Is the mainwindow now empty}
\test[0]{In the Menu box only 'New Session', 'Open Session', 'Delete Session',
	'Logout' and 'Help' are active?}

\item Create a new session.  Now select 'Logout'.
\test[0]{Does a dialog ask you to save unsaved changes?}

\item Press cancel.
\test[0]{Is the session still active without any changes?}

\item Select 'Logout' again and press 'OK'. Login again and select 'Open
Session'.
\test[0]{Is the just saved session listed (check also details) ?}

\item Change the Comment and again logout, press 'No'. Login again and 
select 'Open Session'.
\test[0]{Does the session used in the former tests stil, display the old
comment?}

\item 'Cancel' the dialog and logout.
\test[0]{Does GREAT-ER end properly without further request?}

\end{enumerate}


\clearpage
%------------------------------------------------------
%note that Environment Management is analog
\testsection{Substance Management}{
	Connect to GREAT-ERWeb again as privileged user, 
	create a new session with only a name.
	}

\begin{enumerate}

\item Check Menu Substance.
\test[0]{Are 'Edit Substance' and 'Save Substance' the only disabled items?}

\item Select 'Open Substance'.
\test[0]{Does the Open Substance dialog appear?}

\item Press Cancel.
\test[0]{Does the dialog end properly and 'Edit/Save As' are still the only
diasabled items in the Substance menu?}

\item Select 'Open Substance', select Boron and press OK.
\test[0]{Does the dialog end properly and all Substance menu items are enabled?}
\test[0]{Is 'Run Simulation' disabled in the Menu?}

\item Select 'Edit Substance'.
\test[0]{Does the dialog Edit Substance appear properly and allow
to enter various parameters?}

\item Change a parameter and press OK.
\test[0]{Does the dialog end properly?}

\item Select 'Edit Substance'.
\test[0]{Is the changed parameter shown as changed?}

\item Press Cancel, select Open Substance'.
\test[0]{Does a dialog inform you about the potential loss of unsaved changes?}

\item Confirm the request, Select Substance \verb.<.None\verb.>. and press OK.
\test[0]{Is 'Edit Substance' disabled?}

\item Select 'Open Substance', select LAS and press OK. 
\test[0]{Does the Status box display the correct Substance Name}

\item Select 'Save Substance'.  Change the Name and press Cancel.
\test[0]{Does the Status box display the correct Substance Name}

\item Again enter 'Save Substance', change the name 
and press OK. Then enter 'Edit Substance' again.
\test[0]{Does the Status box display the correct Substance Name}
\test[0]{Does the dialog show the new name}

\item Select 'Open Substance', check the dialog.
\test[0]{Is the new substance listed in the selection?}

\item Select Substance/Delete.
\test[0]{Are only substances listed with edit privileges?}

\item Select the newly created substance and press OK.
\test[0]{Does a request pop up?}
\test[0]{If you answer with OK, does the dialog silently close?}
\test[0]{Is the substance gone if you reenter the Delete Substance dialog?}

\end{enumerate}


%------------------------------------------------------
%\testsection{Parameter Dialogs}{Start GREAT-ER, create a new session,
%open substance 'Boron'.}
%
%\begin{enumerate}
%
%\item Select Substance/Edit.
%\test[0]{Does the 'Substance Data' dialog appear filled with Boron data?}
%
%\item Keyboard Navigation
%\test[0]{Does {\tt Tab} cycle through the entries?}
%\test[0]{{\tt Shift-Tab} cycles bacwards?}
%\test[0]{For a given entry, does {\tt Alt-D} changes to the 'Details Box'?} 
%\test[0]{In the 'Details Box' {\tt Tab} cycles through the entries?}
%\test[0]{After the last 'Details Box' entry the focus returns to the first
%	parameter entry?}
%\test[0]{{\tt Ctrl-Tab} moves to the next notebook?}
%\test[0]{{\tt Shift-Ctrl-Tab} moves to the previous notebook?}
%
%\item Move back to the 'Identification' notebook and focus on the 'Name' entry.
%	Press \verb"<Backspace>" key, then \verb"<Tab>" key.
%\test[0]{Is the name field set to 'unknown'?}
%
%\item Press \verb"<Tab>" key again.
%\test[0]{Is 'EINECS' selected and shown in the details box?}
%
%\item Press Cancel.
%\test[0]{Does the dialog end?}
%
%\item Select Substance/Edit.
%\test[0]{Is the name field set to 'Boron'?}
%
%\item Enter 'not Boron'. Select notebook tab 'Physico-chemical Properties'.
%\test[0]{Does the details box show details for 'Molar Mass'?}
%
%\item Enter '2000', then click on the 'Kow' input field.
%\test[0]{Does the input field for 'Molar Mass' become yellow?}
%
%\item Enter '-1', then click on the 'pKa' input field.
%\test[0]{Does the input field for 'Kow' become red?}
%
%\item Press OK.
%\test[0]{Does the 'Value outside usual range' dialog appear?}
%
%\item Press Yes.
%\test[0]{Does the 'Value outside valid range' dialog appear?}
%
%\item Press OK.
%\test[0]{Is 'Kow' selected?}
%
%\item Select 'neutral' from 'Dissociation'.
%\test[0]{Does the details box show details for 'Dissociation'?}
%
%\item Select notebook tab 'Partitioning'.
%\test[0]{Does the 'Value outside valid range' dialog appear?}
%
%\item Press OK.
%\test[0]{Is 'Kow' selected?}
%
%\item Press \verb"<Backspace>" key, then select notebook tab 'Sewage Treatment
%Removal'.
%\test[0]{Is 'R (sewer)' selected?}
%
%\item Click on the 'R (AS)' input field.
%\test[0]{Is the 'Distribution' selection list enabled?}
%
%\item Select distribution type 'normal'.
%\test[0]{Does a dialog for entering mean value and std. deviation appear?}
%
%\item Press Cancel.
%\test[0]{Does the dialog end and is distribution type still 'none'?}
%
%\item Select distribution type 'uniform'.
%\test[0]{Does a dialog for entering min. value and max. value appear?}
%
%\item Enter '2' for max. value, then press \verb"<Tab>".
%\test[0]{Does the input field for max. value become red?}
%
%\item Press OK.
%\test[0]{Does the 'Value outside valid range' dialog appear?}
%
%\item Press OK.
%\test[0]{Is max. value selected?}
%
%\item Enter '1' for max. value, then press Ok.
%\test[0]{Does the input field for 'R (AS)' contain '0.0;1.0'?}
%
%\item Enter '0.5;2/normal', press \verb"<Tab>".
%\test[0]{Does the input field for 'R (AS)' contain '0.5;2'?}
%
%\item Press \verb"<Shift>-<Tab>".
%\test[0]{Is distribution type now 'normal'?}
%
%\item Press OK.
%\test[0]{Does the dialog end?}
%
%\item Select Substance/Edit.
%\test[0]{Is the name field set to 'not Boron'?}
%
%\item Select notebook tab 'Physico-chemical Properties'.
%\test[0]{Is the input field for 'Molar Mass' yellow?}
%
%\end{enumerate}
%

\clearpage
%------------------------------------------------------
\testsection{Catchment/Discharge Management}{Start GREAT-ER and open an
existing session.}

\begin{enumerate}

\item Select 'Open Catchment'.
\test[0]{Does the 'Open Catchment' dialog appear?}

\item Select a catchment and press OK.
\test[0]{Is the selected catchment displayed in the main window?}

\item Select the 'Edit Emission' Tool .
\test[0]{Is the 'Edit Emission' tool selected in the view toolbar?}

\item Click aside a discharge marker on the map.
\test[0]{Does a warning message appear?}

\item Click upon a stretch.
\test[0]{Does a warning message appear?}

\item Zoomin somewhere. Select the tool again and click on a discharge marker.
\test[0]{Does the 'Edit Emission' dialog appear?}
\test[0]{Is the mapextent the same as before?}
\test[0]{Is the discharge marker highlighted?}

\item Enter '10' for 'Site specific consumption' and press OK.
\test[0]{Does the 'Edit Emission Data' dialog disappear?}

\item Click on the same discharge marker again.
\test[0]{Is 'Site specific consumption' equal to '10.0'?}

\item Click on the 'Edit Discharge' tool in the view toolbar.
\test[0]{Is the 'Edit Discharge' tool selected in the toolbar?}

\item Click aside a discharge marker on the map.
\test[0]{Does a warning message appear?}
\test[0]{Has the highlighted discharge been set to normal color?}

\item Click upon a stretch.
\test[0]{Does a warning message appear?}

\item Select the 'Edit Discharge' tool again and click on a discharge marker.
\test[0]{Does the 'Edit Discharge' dialog appear?}
\test[0]{Is the mapextent the same as before?}
\test[0]{Is the discharge marker highlighted?}

\item Enter a site specific WWTP removal of '0.3' and press OK.
\test[0]{Does the 'Edit Discharge Data' dialog disappear?}

\item Click on the same discharge marker again.
\test[0]{Is 'WWTP removal' equal to '0.3'?}

\item If a session has substance/catchment dependent settings or data
	(especially results) these have to be deleted if substance or 
	catchment are changed. Check the following four
	cases, especially look after edited values which have to be set back
	to the defaults after changing substance/catchment:
\test[0]{Edit of emission data and change of substance without problems?}
\test[0]{Edit of emission data and change of catchment without problems?}
\test[0]{Edit of discharge data and change of substance without problems?}
\test[0]{Edit of discharge data and change of catchment without problems?}

\end{enumerate}


\clearpage
%------------------------------------------------------
\testsection{Simulation}{
	Start GREAT-ER create a new session with catchment and substance.
	}

\begin{enumerate}

\item Select 'Edit Model Params'.
\test[0]{Does the 'Edit Model Params' dialog appear?}

\item Enter '10000' for Monte-Carlo Shots and press OK
\test[0]{Does the dialog end and confirm change of Model Parameters?}

%\item Select Simulation/Missing Parameters.
%\test[0]{Does a dialog appear informing you that a number of
%substance parameters are missing?}
%
%\item Select Substance/Open and load substance Boron. Then select
%Simulation/Missing Parameters.
%\test[0]{Does the dialog now say that you can start the simulation?}
%
%\item Select Substance/Edit and go to section WWTP Removal.
%%\test[0]{Is there a required indicator for primary, AS and TF removal?}
%\test[0]{Are all other entries of this section shown without this indicator?}
%
%\item Select Simulation/Edit Model Parameters, go to section Sewer and switch
%to mode 2 and press OK. Then enter Substance/Edit and go to section WWTP Removal.
%\test[0]{Is there now an additional required indicator for sewer removal?}
%
\item Select 'Run Simulation'.
\test[0]{Does the Map Window and the Dialog display messages that currently
a simulation is running?}

\item Select 'Check Status'
\test[0]{Does the Dialog box display an info about the progress of running
the running simulation?}

\item Be sure that the simulation is still running and select 
'Stop Simulation'. 
\test[0]{Does a dialog appear saying that the simulation was
stopped cleanly?}

\item Select 'Run Simulation' and check the status freqently
\test[0]{Does the Dialog box diplay the simulation progress?}
\test[0]{Does the dialog finally display 'No simulation running'}
\test[0]{Are simulation results loaded}
\test[0]{Are the Analysis menu items now active?}
\test[0]{Is the results layer activated?}

% TODO: Simulation Server selection (we need a running server somewhere
% or an explanation how to start one separately).
% Or: Make GREAT-ER show the port and host of the own server. Then start
% a second GREAT-ER and use the first GREAT-ERs server.
% all this maybe should form a chapter of its own though.

\end{enumerate}

%------------------------------------------------------
\testsection{Analysis}{
	Start GREAT-ER, create a new session with Catchment and Substance 
	and run a Simulation.
	}

\begin{enumerate}

\item Select 'PEC initial'.
\test[0]{Does a dialog appear that presents the resulting value
of PEC intial?}
\test[0]{Is the value greater than 0?}

\item Select 'PEC catchment'.
\test[0]{Does a dialog appear that presents the resulting values
for PEC catchment?}
\test[0]{Are all values greater than 0?}

\item Select 'Concentration Profile' tool and click aside any river stretch.
\test[0]{Does a warning message appear?}

\item Zoom in somewhere into the map
\item Click a upon a discharge marker.
\test[0]{Does a warning message appear?}
\test[0]{Has the map extent been guarded?}

\item Select the tool again and select a river stretch on the map.
\test[0]{Does a dialog appear that contains a profile graph?}
\test[0]{Can you go back to the Map Display?}

% TODO: Simulation Server selection (we need a running server somewhere
% or an explanation how to start one separately).
% Or: Make GREAT-ER show the port and host of the own server. Then start
% a second GREAT-ER and use the first GREAT-ERs server.
% all this maybe should form a chapter of its own though.

\end{enumerate}

\end{document}

