Index: doc/System/D-Soil Model - Test Report/D-Soil Model - Test Report.tex =================================================================== diff -u -r153 -r162 --- doc/System/D-Soil Model - Test Report/D-Soil Model - Test Report.tex (.../D-Soil Model - Test Report.tex) (revision 153) +++ doc/System/D-Soil Model - Test Report/D-Soil Model - Test Report.tex (.../D-Soil Model - Test Report.tex) (revision 162) @@ -1,6 +1,8 @@ \documentclass[signature]{deltares_manual} \usepackage[titletoc]{appendix} +\usepackage{lscape} + \renewcommand\BackgroundPicChapter{ \put(0,0){ \parbox[b][\paperheight]{\paperwidth}{% @@ -40,51 +42,41 @@ \includepdf[pages=1, offset=72 -70]{pictures/D-SoilModel-TestDocument.pdf} % links-rechts past precies \cleardoublepage -\newcommand{\DSOILMODEL}{D-Soil~Model\xspace} +\newcommand{\ProgramName}{D-Soil~Model\xspace} +\newcommand{\VersionNumber}{16.1.1\xspace} -\title{\DSOILMODEL} +\title{\ProgramName} \subtitle{} -\manualtype{Test Plan} -\version{2.0} +\manualtype{Test Report for version \VersionNumber} +\version{1.0} +\date{June 2016} \client{RWS} \projectnumber{1230088-026} -\reference{1230088-026-DSC-0002} +\reference{1230088-026-DSC-0005} \classification{-} \keywords{WTI2017, hydraulic structures, structural failure, calculation kernel, wave pressure, linear load calculation, quadratic load calculation} -\references{\begin{thebibliography}{100} -\bibitem[Lit 1]{TechnicalDesign} WTI 2017 DSoilModel - Technical Design, J. Bokma, J. Beckers, B. Adriaanse, Deltares report 1209430-003-DSC-0021, Dec. 2015. -\bibitem[Lit 2]{ReqAndFunctDesign} WTI 2017 D-Soil Model - Requirements and Functional Design, I. van der Zwan -R. van der Meij, Deltares report 1209430-003-DSC-0009 version 1 (final), March 2015. -\bibitem[Lit 3] {OverallTestPlanWTI} Overall Testplan Software WTI2017 - RingToets, HydraRing, D-Soil Model en Faalmechanisme bibliotheken. H. van Putten \& P. Witlox, Deltares report 1220079-005-DSC-0006, 2015. -\bibitem[Lit 4] {AcceptatieTestPlan} Acceptatietestplan -- Plan voor acceptatie van de WTI2017 software, H. van Putten \& P. Witlox, Deltares report 1230088-036-DSC-0001, 2016. -\bibitem[Lit 5] {Eisen} Eisen aan toelevering van softwarecomponenten aan het Cluster Softwareontwikkeling, J. Icke, Deltares rapport 1209430-005-DSC-002, 2014. -\bibitem[Lit 6] {Basisuitgangspunten} Basisuitgangspunten WT12017. Watersystemen, Faalmechanismen en Softwareontwikkeling. J.G. Knoeff et al., Deltares report 1206004-002-GEO-0002, 2012. -\end{thebibliography}} +\references{\bibliography{../../Work/WTI_references/wti_references}} -\summary{This document contains the 2$^{\text{nd}}$ version of the test plan for \DSOILMODEL, including the comments of H. Walls (Rijkswaterstaat).} +\summary{This document contains the test report for \ProgramName \VersionNumber. +\textbf{\footnotesize{Samenvatting}} \newline +Dit document bevat het test rapport voor \ProgramName \VersionNumber.} + \authori{dr. V. Trompille} -\revieweri{P. Witlox \newline ir. K.S. Lam} +\revieweri{dr.ir. J.G. van \newline Putten} \approvali{ir. J. Icke} \versioni{1.0} -\datei{July 2015} +\datei{May 2016} -\authorii{dr. V. Trompille} -\reviewerii{dr.ir. J.G. van \newline Putten} -\approvalii{ir. J. Icke} -\versionii{2.0} -\dateii{April 2016} - \status{final} \deltarestitle -%------------------------------------------------------------------------------ -%--------------------------------------------------- +%------------------------------------------------------------------------------ \chapter{Introduction} \label{chapter1} \section{Purpose and scope of this document} \label{sec:1.1} @@ -104,32 +96,21 @@ %\label{xxx} \begin{tabular}{|p{46mm}|p{\textwidth-46mm-24pt}|} \hline \textbf{Title} & \textbf{Content} \\ \hline -Functional Design UI \newline \citep{GrassUI_FunctionalDesign} & Description of the requirements and functional design of \ProgramName. \\ \hline -Functional Design \newline Grass Wave Impact kernel \newline \citep{GrassWaveImpactKernel_FunctionalDesign} & Description of the functional design of Grass Wave Impact kernel . \\ \hline -Functional Design \newline Grass Wave Run-up kernel \newline \citep{GrassWaveRunupKernel_FunctionalDesign} & Description of the functional design of Grass Wave Run-up kernel . \\ \hline +Functional Design \newline \citep{DSoilModel_FunctionalDesign} & Description of the requirements and functional design of \ProgramName. \\ \hline +Technical Design \newline \citep{DSoilModel_TechnicalDesign} & Description of the implementation of the functional design of \ProgramName. \\ \hline Programmers documentation & Description of the arguments and usage of different software components, generated from in-line comment with Doxygen. \\ \hline -Test Plan \newline \citep{GrassUI_TestPlan} & Description of the different regression and acceptation tests, including target values. \\ \hline -Test Report \newline (this document) & Description of the test results (benchmarks and test scripts). \\ \hline -User Manual & Description of the different functionalities available in the \textit{User Interface} and background information. \\ \hline +Test Plan \newline \citep{DSoilModel_TestPlan} & Description of the different regression and acceptation tests, including target values. \\ \hline +Test Report \newline (this document) & Description of the test results (incl. test scripts). \\ \hline +User Manual \newline \citep{DSoilModel_Manual} & Description of the different functionalities available in the \textit{User Interface} and background information. \\ \hline \end{tabular} \end{table} \section{Requirements} \label{sec:1.3} -In the Functional Design of the \textit{User Interface} \cite{GrassUI_FunctionalDesign}, the following requirements are defined and must be therefore tested: +In the Functional Design of the \textit{User Interface} \cite{DSoilModel_FunctionalDesign}, the following requirements are defined and must be therefore tested: \begin{longtable}{p{13mm}p{\textwidth-13mm-24pt}} -REQ 1 & The \textit{User Interface} must support the input of all required data. \\ -REQ 2 & The \textit{User Interface} must support the validation of all required input data. \\ -REQ 3 & The \textit{User Interface} must be able to start the Grass Run up Assessment calculation. \\ -REQ 4 & The \textit{User Interface} must be able to retrieve the results of the Grass Run up Assessment calculation. \\ -REQ 5 & The \textit{User Interface} must support the display of the results of the Grass Run up Assessment calculation. \\ -REQ 6 & The \textit{User Interface} must be able to start the Grass Impact Assessment calculation. \\ -REQ 7 & The \textit{User Interface} must be able to retrieve the results of the Grass Impact Assessment calculation. \\ -REQ 8 & The \textit{User Interface} must support the display of the results of the Grass Impact Assessment calculation. \\ -REQ 9 & The \textit{User Interface} must be able to read and write all data to its own file for storage and reuse of the data. \\ -REQ 10 & The \textit{User Interface} must offer functionality to switch between all of its parts. \\ -REQ 11 & The \textit{User Interface} must be available in Dutch. \\ +?? \end{longtable} @@ -145,7 +126,7 @@ To obtain a single code coverage, it is convenient to combine unit and integration tests, 98 in total. For these tests, see the C\# solution or the build server. -These tests are considered to be ok when the unit tests pass and when the code coverage of those tests is more than 80\%, as prescribed in \cite{OverallTestPlanWTI} for calculation kernels. +These tests are considered to be ok when the unit tests pass and when the code coverage of those tests is more than 60\%, as prescribed in \cite{OverallTestPlanWTI} for calculation kernels. \section{Number of unit/integration tests and status} @@ -158,7 +139,7 @@ \renewcommand{\arraystretch}{1.3} \begin{tabular}{|p{\textwidth-40mm-36pt}|p{20mm}|p{20mm}|} \hline \rowcolor[gray]{.8}\textbf{Class name} & \textbf{Number} & \textbf{Failed} \\ \hline -\multicolumn{3}{|p{120mm}|}{\textbf{\textit{Namespace: Deltares.GrasToets.Forms.Tests}}} \\ \hline +\multicolumn{3}{|p{120mm}|}{\textbf{\textit{Namespace: Deltares.SoilModel.Forms.Tests}}} \\ \hline GrassAssessmentContextTest & 1 & 0 \\ GrassCalculationControlTest & 3 & 0 \\ HydraulicLoadInputControlTest & 1 & 0 \\ @@ -184,24 +165,29 @@ \label{tab:2-2} \renewcommand{\arraystretch}{1.3} \begin{tabular}{|p{\textwidth-86mm-36pt}|p{23mm}|p{28mm}|p{35mm}|} \hline +\rowcolor[gray]{.8} Namespace & \textbf{Class} & \textbf{Method} & \textbf{Statement} \\ \hline +Deltares.DSoilModel.Data & 0\% (0/1) & 0\% (0/6) & 0\% (0/11) \\ \hline + +\textbf{Total} & \textbf{100\% (22/22)} & \textbf{92.2\% (178/193)} & \textbf{94.6\% (2245/2372)}\\ \hline +\end{tabular} +\end{table} + +\begin{table}[H] +\caption{Code coverage of the unit tests and integration tests for \ProgramName} +\label{tab:2-2} +\renewcommand{\arraystretch}{1.3} +\begin{tabular}{|p{\textwidth-86mm-36pt}|p{23mm}|p{28mm}|p{35mm}|} \hline \rowcolor[gray]{.8} & \textbf{Class} & \textbf{Method} & \textbf{Statement} \\ \hline -\multicolumn{4}{|p{120mm}|}{\textbf{\textit{Namespace: Deltares.GrasToets.Data}}} \\ \hline -Geometry & 100\% (1/1) & 100\% (3/3) & 100\% (10/10) \\ \hline -GrassAssessment & 100\% (1/1) & 100\% (3/3) & 100\% (12/12) \\ \hline -HydraulicLoad & 100\% (1/1) & 100\% (9/9) & 100\% (41/41)\\ \hline -Input & 100\% (1/1) & 100\% (1/1) & 100\% (5/5)\\ \hline -Output & 100\% (1/1) & 100\% (3/3) & 100\% (11/11)\\ \hline -Project & 100\% (1/1) & 100\% (6/6) & 96.4\% (27/28) \\ \hline -RunUpInput & 100\% (1/1) & 100\% (35/35) & 100\% (122/122) \\ \hline -RunUpModelConverter & 100\% (1/1) & 100\% (5/5) & 99.0\% (95/96) \\ \hline -Segment & 100\% (1/1) & 100\% (10/10) & 100\% (30/30) \\ \hline -WaterLevel & 100\% (1/1) & 100\% (4/4) & 100\% (12/12) \\ \hline -WaveCondition & 100\% (1/1) & 100\% (10/10) & 100\% (30/30)\\ \hline -WaveImpactFraction & 100\% (1/1) & 100\% (3/3) & 100\% (7/7)\\ \hline -WaveImpactInput & 100\% (1/1) & 100\% (25/25) & 100\% (84/84)\\ \hline -WaveImpactModelConverter & 100\% (1/1) & 100\% (4/4) & 98.8\% (85/86)\\ \hline -WaveImpactModelConverter & 100\% (1/1) & 100\% (4/4) & 100\% (112/112)\\ \hline -\multicolumn{4}{|p{120mm}|}{\textbf{\textit{Namespace: Deltares.GrasToets.Forms}}} \\ \hline +\multicolumn{4}{|p{120mm}|}{\textbf{\textit{Namespace: Deltares.DSoilModel.Data}}} \\ \hline +CenterCrestLocation & 0\% (0/1) & 0\% (0/6) & 0\% (0/11) \\ \hline +DSoilModelDataSourceRedirector & 0\% (0/1) & 0\% (0/3) & 0\% (0/24) \\ \hline +DSoilModelIO & 100\% (1/1) & 60\% (15/259) & 65.7\% (201/306)\\ \hline +DSoilModelProject & 100\% (1/1) & 62.5\% (45/72) & 56.3\% (272/483)\\ \hline +DSoilModelStiFileTransformer & 100\% (1/1) & 100\% (5/5) & 86.4\% (19/22)\\ \hline +SoilSegmentSplitLocation & 0\% (0/1) & 0\% (0/10) & 0\% (0/28) \\ \hline +SosSoilLayer1D & 100\% (1/1) & 77.8\% (7/9) & 66.7\% (16/24) \\ \hline +SosSoilProfilesImporter & 100\% (1/1) & 100\% (8/8) & 95.0\% (38/40) \\ \hline +\multicolumn{4}{|p{120mm}|}{\textbf{\textit{Namespace: Deltares.DSoilModel.Forms}}} \\ \hline GrassAssessmentContext & 100\% (1/1) & 100\% (9/9) & 97.8\% (45/46)\\ \hline GrassCalculationControl & 100\% (1/1) & 100\% (3/3) & 98.6\% (72/73)\\ \hline HydraulicLoadInputControl & 100\% (1/1) & 100\% (9/9) & 99.6\% (238/239)\\ \hline @@ -214,12 +200,13 @@ \end{table} -The code coverage is \textbf{94.6\%}, which largely exceeds the minimum required code coverage of 80\% prescribed in \cite{OverallTestPlanWTI}. +The code coverage is \textbf{94.6\%}, which largely exceeds the minimum required code coverage of 60\% prescribed in \cite{OverallTestPlanWTI}. + %------------------------------------------------------------------------------ \chapter{System testing (Test Scripts)} \label{chapter3} Index: doc/System/D-Soil Model - Test Report/D-Soil Model - Test Report.pdf =================================================================== diff -u -r153 -r162 Binary files differ