From: charlie Date: Mon, 9 Nov 2015 21:04:46 +0000 (+0100) Subject: 2 test-cases ter illustratie. X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=5c2fca4f63300f71ed244e309fb2730ec4cf15ec;p=tt2015.git 2 test-cases ter illustratie. --- diff --git a/a2/1cases.tex b/a2/1cases.tex index e418a81..d4db36c 100644 --- a/a2/1cases.tex +++ b/a2/1cases.tex @@ -107,3 +107,55 @@ equivalence partitions and the combination of cases as described in Table~(\textbf{referentie naar decision table}) ensures that all partitions are covered and the number of individual tests is still feasible. + +% +% wat ik ook probeer ik krijg de eerste collum +% zijn tekst niet verticaal gecentered +% +\begin{table} + + +\subsection{Test cases} + +\begin{tabularx}{\linewidth}{| l | X|} +\hline +Nr & 1 \\\hline +Title & Single valid request. \\\hline +Input & Pcap file with prerecorded valid packets. \\\hline +Expected output & Pcap file with valid response to request. \\\hline +Course of action & \begin{enumerate} + \item Load input pcap file. + \item Replay pcap file using ... + \item Record SUT response using... + \item Save recorded packets as a pcap file. + \item Analyze packets in resulting file. +\end{enumerate} \\\hline +Valid trace & \begin{enumerate} + \item \textbf{Hier packets benoemen?} +\end{enumerate} \\\hline +\end{tabularx} + +\begin{tabularx}{\linewidth}{| l | X|} + \hline + Nr & 2 \\\hline + Title & Single request with corrupted checksum. \\\hline + Input & Pcap file used as \emph{test-case 1} input. \\\hline + Expected output & No response from SUT, logs with rejected packets. \\\hline + Course of action & \begin{enumerate} + \item Load input pcap file into .... + \item Corrupt checksum of loaded packets. + \item Save resulting packets as pcap file. + \item Load new pcap file into ... + \item Replay new pcap file. + \item Record SUT response using... + \item Extract log with rejected packets. + \item Save recorded packets as a pcap file. + \item Analyze packets in resulting file. + \end{enumerate} \\\hline + Valid trace & \begin{enumerate} + \item \textbf{Aangeven welke packets corrupted zijn?} + \end{enumerate} \\\hline +\end{tabularx} +\end{table} + +\newpage diff --git a/a2/preamble.tex b/a2/preamble.tex index 9b86a0d..0663849 100644 --- a/a2/preamble.tex +++ b/a2/preamble.tex @@ -5,7 +5,7 @@ \usepackage{listings} \usepackage{graphicx} \usepackage{float} - +\usepackage{tabularx} \lstset{% basicstyle=\footnotesize, % the size of the fonts that are used for the code