diff --git a/src/preamble.tex b/src/preamble.tex index 6dd7e44..a3cbfe9 100644 --- a/src/preamble.tex +++ b/src/preamble.tex @@ -9,7 +9,8 @@ \usepackage{xcolor} \usepackage{minted} \usepackage{caption} -\usepackage{courier} % Excellent bold support for typewriter font +\usepackage{courier} +\usepackage{nicematrix} % ===================== % Thème "entreprise" @@ -32,6 +33,8 @@ \newcommand{\incode}[1]{\texttt{\textbf{\textcolor{deepblue}{#1}}}} \newcommand{\tum}[1]{\emph{\textbf{\textcolor{orange}{#1}}}} +\newcolumntype{L}{>{\raggedright\arraybackslash}X} + % ===================== % Police moderne % ===================== diff --git a/src/sections/installation.tex b/src/sections/installation.tex index aed7ac8..a638152 100644 --- a/src/sections/installation.tex +++ b/src/sections/installation.tex @@ -1,9 +1,44 @@ -\begin{frame}{Points clés} -\begin{block}{Avantages} -\begin{itemize} - \item Lisibilité - \item Sobriété - \item Facilement personnalisable -\end{itemize} -\end{block} +\section{Setting up \tum{testium}} + +\begin{frame}[fragile]{Setting up \tum{testium}} +\begin{columns} + \column{0.5\textwidth} + \begin{itemize} + \item Binary installation + \begin{itemize} + \item Place the binary file of testium in a directory + \item Add the testium directory in the \texttt{PATH} + \end{itemize} + \item Automatic setup from sources + \begin{itemize} + \item Create the python virtual environnement + \begin{minted}[fontsize=\fontsize{6}{7}\selectfont]{text} +python3 -m venv C:\path\to\venv +C:\path\to\venv\Scripts\activate.bat + \end{minted} + \item run \incode{run.bat}, \incode{run.ps1} or \incode{run.sh} depending on your OS and command interpreter + \begin{minted}[fontsize=\fontsize{6}{7}\selectfont]{text} +cd C:\path\to\testium +run.bat + \end{minted} + \end{itemize} + \end{itemize} + \column{0.5\textwidth} + \begin{itemize} + \item Manual setup from sources + \begin{itemize} + \item Create the python virtual environnement + \item activate the environnement + \item install the requirements + \begin{minted}[fontsize=\fontsize{6}{7}\selectfont]{text} +cd C:\path\to\testium +pip install -r src\requirements.txt + \end{minted} + \item run \tum{testium} + \begin{minted}[fontsize=\fontsize{6}{7}\selectfont]{text} +python -m src/testium + \end{minted} + \end{itemize} + \end{itemize} +\end{columns} \end{frame} \ No newline at end of file diff --git a/src/sections/intro.tex b/src/sections/intro.tex index e444234..d02d46a 100644 --- a/src/sections/intro.tex +++ b/src/sections/intro.tex @@ -4,7 +4,7 @@ % ===== Main features ===== \subsection{Main features} -\begin{frame}{ \tum{testium} main features} +\begin{frame}{\tum{testium} main features} \begin{columns} \column{0.45\textwidth} \begin{itemize} diff --git a/src/sections/items.tex b/src/sections/items.tex index 1886c48..9dde0a0 100644 --- a/src/sections/items.tex +++ b/src/sections/items.tex @@ -1,49 +1,65 @@ -\section{Exemples} +\section{Test items} -\begin{frame}[fragile]{Exemple de code Python} -\lstset{style=corporate, language=Python} +% ===== Tests items summary ===== +\subsection{Tests items summary} -\begin{lstlisting} -def hello(name): - print(f"Bonjour {name}") - -hello("Entreprise") -\end{lstlisting} +\begin{frame}{Test items - 1/2} + \small + \begin{NiceTabular}{l X} + \hline + \textbf{Item} & \textbf{Description} \\ + \hline + \incode{check} & Checks for a value or expression \\ + \incode{console} & Console actions (serial, terminal, telnet, tcp, ssh) \\ + \incode{dialog\_choices} & Asks for a choice in list \\ + \incode{dialog\_image} & Displays an image \\ + \incode{dialog\_message} & Displays a message \\ + \incode{dialog\_note} & Asks to enter a note \\ + \incode{dialog\_question} & Asks a question with a yes/no choice \\ + \incode{dialog\_references} & Asks for references \\ + \incode{dialog\_value} & Asks for a value, entered manually \\ + \incode{py\_func} & Python function call (from a file) \\ + \incode{lua\_func} & Lua function call (from a file) \\ + \hline + \end{NiceTabular} +\end{frame} +\begin{frame}{Test items - 2/2} + \small + \begin{NiceTabular}{l X} + \hline + \textbf{Item} & \textbf{Description} \\ + \hline + \incode{group} & container for grouping things \\ + \incode{jsonrpc} & JSON-RPC test item \\ + \incode{let} & Defining variables \\ + \incode{loop} & Container for repeating things \\ + \incode{plot} & Runtime plot utility \\ + \incode{report} & Extract a report file \\ + \incode{run} & Runs a new instance of sequencer \\ + \incode{sleep} & Wait (with or without dialog) \\ + \incode{unittest\_file} & Python unittest file \\ + \hline + \end{NiceTabular} \end{frame} -\begin{frame}{Architecture Overview} -\begin{columns}[T] % T = alignement en haut +\subsection{Tests items common attributes} - \column{0.45\textwidth} - \includegraphics[width=\linewidth]{logo.png} - - \column{0.55\textwidth} +\begin{frame}{Items common attributes} \begin{itemize} - \item Modular architecture - \item Clean separation of concerns - \item Easy maintenance - \item Scalable design + \item Mandatory + \begin{itemize} + \item \incode{name} : The test item name + \end{itemize} + \item Optional + \begin{itemize} + \item \incode{stop\_on\_failure}: Stop the test if there is one failure + \item \incode{execute\_on\_stop} : Execution of the item when the test is stopped + \item \incode{skipped} : \incode{true} to skip the execution of the test + \item \incode{doc} : The documentation of the test item + \item \incode{key} : A Key used to filter the reports + \item \incode{condition} : If \incode{true}, will execute the test step. Otherwise, the test step is skipped + \item \incode{process\_result} : Processes the result + \item \incode{expected\_result} : Expected result of the item + \end{itemize} \end{itemize} - -\end{columns} \end{frame} - -\begin{frame}{Performance Metrics} -\begin{columns}[T] - - \column{0.45\textwidth} - \includegraphics[width=\linewidth]{images/logo.png} - - \column{0.55\textwidth} - \centering - \begin{tabular}{lcc} - \textbf{Metric} & \textbf{v1} & \textbf{v2} \\ - \hline - Latency (ms) & 120 & 85 \\ - Throughput & 200 & 310 \\ - Errors (\%) & 2.1 & 0.7 \\ - \end{tabular} - -\end{columns} -\end{frame} -