X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=a2%2F1cases.tex;h=40bd1b90c3e9a0d12db0baa4235c238bde22e5a1;hb=5120784fb9f8e609a2f3e8ffaca7d5768761f3cf;hp=18420a7e09e73dff808657041eb37542c84ba9d5;hpb=9d533c0f740c7f826b75286f309be9f7f3a3674d;p=tt2015.git diff --git a/a2/1cases.tex b/a2/1cases.tex index 18420a7..40bd1b9 100644 --- a/a2/1cases.tex +++ b/a2/1cases.tex @@ -7,10 +7,9 @@ are to be run in a terminal. Commands prefixed with a \texttt{\#} should be run with root permissions. Commands prefixed with a \texttt{\$} should be run with user permissions. -\begin{table}[H] -\begin{tabularx}{\linewidth}{|l|X|} +\begin{longtabu}{|l|X|} \hline - Check 1 & Get the SUT in a workable state. \\ + Check 1 & Get the SUT in a workable state.\\ \hline Course of action & \begin{enumerate} @@ -35,7 +34,6 @@ user permissions. \end{enumerate}\\ \hline Passed & \textit{Yes/No}\\ - \hline \hline Check 3 & Initialize the testing environment.\\ \hline Course of action & @@ -73,7 +71,8 @@ user permissions. \begin{enumerate} \item Boot the SUT as in \emph{Check 1}. \item Execute the command \texttt{ls scripts/tests} - \item Verify that there is a file named case$X$ for each test case $X$ + \item Verify that there is a file named case$X$ for each test case + $X$ \item Use \emph{ls packets} \item Verify that there is a file named \texttt{single.pcap} and \texttt{multi.pcap}. @@ -81,10 +80,8 @@ user permissions. \hline Passed & \textit{Yes/No}\\ \hline -\end{tabularx} -\end{table} - -\newpage + \caption{Preflight checklist\label{tbl:preflight}} +\end{longtabu} \subsection{Testing of SUT} The SUT is a series of services for other computer programs with no end-user @@ -112,16 +109,33 @@ these partitions are given. \item n=small payload packets \item n=big payload packets \end{enumerate} - \item Correct or incorrect \emph{source port} - \item Correct or incorrect \emph{destination port} + \item \emph{source port} + \begin{enumerate} + \item Correct + \item Incorrect + \end{enumerate} + \item \emph{destination port} + \begin{enumerate} + \item Correct + \item Incorrect + \end{enumerate} \item Bits flipped in \emph{payload} \begin{enumerate} \item Correct payload \item Payload with even number of bits flipped \item Payload with odd number of bits flipped \end{enumerate} - \item Correct or Incorrect \emph{checksum} - \item Packets received in or out of order, or missing packets + \item \emph{checksum} + \begin{enumerate} + \item Correct + \item Incorrect + \end{enumerate} + \item Packet order + \begin{enumerate} + \item Correct + \item Out of order + \item Missing packets + \end{enumerate} \end{enumerate} \textbf{hier iets over waarom deze partities relevant zijn! Waarom odd en @@ -134,20 +148,26 @@ to do so) tested with the different request sizes of partition 1. This is expressed in Table~\ref{table:testpairs}. -\begin{table} -% DIT MAAK IK NOG EVEN MOOI - \begin{tabularx}{\linewidth}{p{2cm} | l | p{2cm} | l | p{1cm} || c | c | p{1.3cm} | p{1.3cm}} - \textbf{Payload} & \textbf{checksum} & \textbf{destination port} & \textbf{order} & \textbf{source port} & \textbf{payload 0} & \textbf{payload 1} & \textbf{payload small} & \textbf{payload big} \\ \hline \hline - Correct & Correct & Correct & In order & Correct & \checkmark & \checkmark & \checkmark & \checkmark \\ \hline - Correct & Incorrect & Incorrect & Missing packet & Incorrect & \xmark & \xmark & \checkmark & \checkmark \\ \hline - odd\# of bits flipped & Correct & Incorrect & Out of order & Incorrect & \xmark & \xmark & \checkmark & \checkmark \\ \hline - odd\# of bits flipped & Incorrect & Correct & Missing packet & Correct & \xmark & \xmark & \checkmark & \checkmark \\ \hline - even\# of bits flipped & Correct & Incorrect & Missing packet & Correct & \xmark & \xmark & \checkmark & \checkmark \\ \hline - even\# of bits flipped & Incorrect & Correct & Out of order & Incorrect & \xmark & \xmark & \checkmark & \checkmark \\ \hline - odd\# of bits flipped & Incorrect & Incorrect & In order & Incorrect & \checkmark & \checkmark & \checkmark & \checkmark \\ \hline - even\# of bits flipped & Incorrect & Incorrect & In order & Incorrect & \checkmark & \checkmark & \checkmark & \checkmark \\ \hline - Correct & Incorrect & Incorrect & Out of order & Correct & \xmark & \xmark & \checkmark & \checkmark \\ -\end{tabularx} +\begin{table}[H] + \centering + \begin{tabular}{|l|l|l|l|l|l|l|l|l|l|l|} + \hline + & \multicolumn{10}{c|}{\textbf{Partition}}\\ + \hline + & \# & 4 & 5 & 3 & 6 & 2 & 1a & 1b & 1c & 1d\\ + \hline\hline + \multirow{9}{*}{Instance} + & 1 & a & a & a & a & a & \checkmark & \checkmark & \checkmark & \checkmark\\ + & 2 & a & b & b & c & b & \xmark & \xmark & \checkmark & \checkmark\\ + & 3 & c & a & b & a & b & \xmark & \xmark & \checkmark & \checkmark\\ + & 4 & c & b & a & c & a & \xmark & \xmark & \checkmark & \checkmark\\ + & 5 & b & a & b & c & a & \xmark & \xmark & \checkmark & \checkmark\\ + & 6 & b & b & a & b & b & \xmark & \xmark & \checkmark & \checkmark\\ + & 7 & c & b & b & a & b & \checkmark & \checkmark & \checkmark & \checkmark\\ + & 8 & b & b & b & a & b & \checkmark & \checkmark & \checkmark & \checkmark\\ + & 9 & a & b & b & b & a & \xmark & \xmark & \checkmark & \checkmark\\ + \hline +\end{tabular} \caption{Combinations of test cases} \label{table:testpairs} \end{table} @@ -230,5 +250,3 @@ covered and the number of individual tests is still feasible. % \end{enumerate} \\\hline %\end{tabularx} %\end{table} - -\newpage