123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304 |
-
- \documentclass[a4paper]{article}
- %\documentclass[a4paper,landscape]{article}
-
- \renewcommand{\familydefault}{\sfdefault}
- \usepackage[table]{xcolor}
- \definecolor{orange}{rgb}{1, 0.7, 0}
- \definecolor{lightgrey}{rgb}{0.925, 0.925, 0.925}
-
- \setlength{\topmargin}{-3cm}
- \setlength{\oddsidemargin}{-0.5cm}
- \setlength{\evensidemargin}{0cm}
- \setlength{\textwidth}{17.5cm}
- \setlength{\textheight}{24.5cm}
- %\setlength{\textwidth}{25cm}
- %\setlength{\textheight}{15cm}
- \setlength{\headheight}{84pt}
-
- \usepackage{fancyvrb}
- \usepackage{fvextra}
- %\usepackage{framed,color}
- %\newenvironment{modulelog}{\snugshade\Verbatim}{\endVerbatim\endsnugshade}
- \usepackage{adjustbox}
- \newenvironment{modulelog}%
- {\par\noindent\adjustbox{margin=0ex,bgcolor=shadecolor,margin=0ex}\bgroup\varwidth\linewidth\Verbatim}%
- {\endVerbatim\endvarwidth\egroup}
- %\usepackage{xcolor}
-
- \renewcommand{\baselinestretch}{1,2}
- \setlength{\parindent}{0pt}
- \setlength{\parskip}{9pt plus3pt minus3pt}
-
- \usepackage{listings}
- \usepackage{color}
- \definecolor{bg-partially-covered}{rgb}{1,1,0.6} % light-yellow
- \definecolor{bg-uncovered}{rgb}{1,0.8,0.8} % light-red
- \definecolor{bg-covered}{rgb}{0.95,1,0.95} % very light-green
- \definecolor{bg-clean}{rgb}{1,1,1} % white
- \definecolor{mygreen}{rgb}{0,0.6,0}
- \definecolor{mygray}{rgb}{0.5,0.5,0.5}
- \definecolor{mymauve}{rgb}{0.58,0,0.82}
- \lstset{ %
- backgroundcolor=\color{white}, % choose the background color; you must add \usepackage{color} or \usepackage{xcolor}; should come as last argument
- basicstyle=\footnotesize, % the size of the fonts that are used for the code
- breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
- breaklines=true, % sets automatic line breaking
- captionpos=b, % sets the caption-position to bottom
- commentstyle=\color{mygreen}, % comment style
- deletekeywords={...}, % if you want to delete keywords from the given language
- escapeinside={\%*}{*)}, % if you want to add LaTeX within your code
- extendedchars=true, % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8
- frame=none, % adds a frame around the code
- keepspaces=true, % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible)
- keywordstyle=\color{blue}, % keyword style
- language=Octave, % the language of the code
- morekeywords={*,...}, % if you want to add more keywords to the set
- numbers=left, % where to put the line-numbers; possible values are (none, left, right)
- numbersep=5pt, % how far the line-numbers are from the code
- numberstyle=\tiny\color{mygray}, % the style that is used for the line-numbers
- rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here))
- showlines=true,
- showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'
- showstringspaces=false, % underline spaces within strings only
- showtabs=false, % show tabs within strings adding particular underscores
- stepnumber=1, % the step between two line-numbers. If it's 1, each line will be numbered
- stringstyle=\color{mymauve}, % string literal style
- tabsize=2, % sets default tabsize to 2 spaces
- }
- \usepackage{hyperref}
- \usepackage{longtable}[=v4.13]
- \usepackage{tabu}
- \usepackage{multicol}
- \usepackage{booktabs}
- \usepackage{graphicx}
- \usepackage{lastpage} % for the number of the last page in the document
- \usepackage{fancyhdr}
-
- \fancyhf{}
- \renewcommand{\headrulewidth}{0pt}
- \renewcommand{\footrulewidth}{0pt}
- \lhead{\textcolor{gray}{}}
- \chead{\textcolor{gray}{ Unittest for {\tt smart\_brain }}}
- \rhead{\textcolor{gray}{}}
- \lfoot{\textcolor{gray}{}}
- \cfoot{\textcolor{gray}{}}
- \rfoot{\textcolor{gray}{\thepage\,/ \pageref{LastPage}}}
-
- \begin{document}
-
- \begin{titlepage}
- \date{\today}
- \title{
- Unittest for {\tt smart\_brain }
- }
- \date{\today}
- \maketitle
- \thispagestyle{empty}
- \newpage
- \end{titlepage}
-
- \setcounter{page}{1}
- \pagestyle{fancy}
-
- \tableofcontents
- \newpage
-
- \section{Test System Information}
- \begin{tabu} to \linewidth {lX}
- \toprule
- {\bf System Information} & \\
- \midrule
- Architecture & 64bit \\
- Machine & x86\_64 \\
- Hostname & ahorn \\
- Distribution & Linux Mint 21.1 (vera) \\
- System & Linux \\
- Kernel & 5.15.0-58-generic (\#64-Ubuntu SMP Thu Jan 5 11:43:13 UTC 2023) \\
- Username & dirk \\
- Path & /\allowbreak home/\allowbreak dirk/\allowbreak my\_repositories/\allowbreak smarthome/\allowbreak smart\_brain\_test/\allowbreak all.py \\
- \bottomrule
- \end{tabu}
-
-
- \section{Summary}
- \begin{tabu} to \linewidth {lX}
- \toprule
- Number of tests & {\bf 5}\\
- Number of successfull tests & {\bf 5}\\
- Number of possibly failed tests & \textcolor{black}{\bf 0}\\
- Number of failed tests & \textcolor{black}{\bf 0}\\
- \midrule
- Executionlevel & unknown\\
- Time consumption & 4.510s\\
- \bottomrule
- \end{tabu}
-
-
-
-
-
-
- \section{\textcolor{green}{Testcases (Success)}}
-
-
- \subsection{ Away mode test: zigbee/\allowbreak gfw/\allowbreak dirk/\allowbreak heating\_valve }
-
-
- \paragraph{Testsummary}\mbox{}\\
- This test was passed with the state: {\bf \textcolor{green}{Success}}.
- \begin{longtabu} to \linewidth {lX}
- \toprule
- Caller: & /\allowbreak home/\allowbreak dirk/\allowbreak my\_repositories/\allowbreak smarthome/\allowbreak smart\_brain\_test/\allowbreak tests/\allowbreak heating.py (84)\\
- Start-Time: & 2023-02-09 07:53:02,566\\
- Finished-Time: & 2023-02-09 07:53:03,468\\
- Time-Consumption & 0.902s\\
- \midrule
- \multicolumn{2}{l}{\bf{Testresults:}}\\
- \midrule
- \bf{\,Info } & Setting preconditions (Default setpoint)\\
- \bf{\,\textcolor{green}{Success} } & Away mode is correct (Content False and Type is $<$class 'bool'$>$).\\
- \bf{\,Info } & Activating away mode\\
- \bf{\,\textcolor{green}{Success} } & Away mode is correct (Content True and Type is $<$class 'bool'$>$).\\
- \bf{\,\textcolor{green}{Success} } & Temperature setpoint is correct (Content 20 and Type is $<$class 'int'$>$).\\
- \bf{\,Info } & Deactivating away mode\\
- \bf{\,\textcolor{green}{Success} } & Away mode is correct (Content False and Type is $<$class 'bool'$>$).\\
- \bf{\,\textcolor{green}{Success} } & Temperature setpoint is correct (Content 25 and Type is $<$class 'int'$>$).\\
- \bottomrule
- \end{longtabu}
-
-
-
-
-
-
-
-
- \subsection{ Boost mode test: zigbee/\allowbreak gfw/\allowbreak dirk/\allowbreak heating\_valve }
-
-
- \paragraph{Testsummary}\mbox{}\\
- This test was passed with the state: {\bf \textcolor{green}{Success}}.
- \begin{longtabu} to \linewidth {lX}
- \toprule
- Caller: & /\allowbreak home/\allowbreak dirk/\allowbreak my\_repositories/\allowbreak smarthome/\allowbreak smart\_brain\_test/\allowbreak tests/\allowbreak heating.py (107)\\
- Start-Time: & 2023-02-09 07:53:03,468\\
- Finished-Time: & 2023-02-09 07:53:04,370\\
- Time-Consumption & 0.902s\\
- \midrule
- \multicolumn{2}{l}{\bf{Testresults:}}\\
- \midrule
- \bf{\,Info } & Setting preconditions (Default setpoint)\\
- \bf{\,\textcolor{green}{Success} } & Boost timer is correct (Content 0 and Type is $<$class 'int'$>$).\\
- \bf{\,Info } & Activating boost mode\\
- \bf{\,\textcolor{green}{Success} } & Boost timer is greater expectation (Content 900 and Type is $<$class 'int'$>$).\\
- \bf{\,Info } & Setting postconditions (Default setpoint)\\
- \bf{\,\textcolor{green}{Success} } & Boost timer is correct (Content 0 and Type is $<$class 'int'$>$).\\
- \bottomrule
- \end{longtabu}
-
-
-
-
-
-
-
-
- \subsection{ Default temperature test for device and virtual device: zigbee/\allowbreak gfw/\allowbreak dirk/\allowbreak heating\_valve }
-
-
- \paragraph{Testsummary}\mbox{}\\
- This test was passed with the state: {\bf \textcolor{green}{Success}}.
- \begin{longtabu} to \linewidth {lX}
- \toprule
- Caller: & /\allowbreak home/\allowbreak dirk/\allowbreak my\_repositories/\allowbreak smarthome/\allowbreak smart\_brain\_test/\allowbreak tests/\allowbreak heating.py (41)\\
- Start-Time: & 2023-02-09 07:53:04,370\\
- Finished-Time: & 2023-02-09 07:53:04,972\\
- Time-Consumption & 0.601s\\
- \midrule
- \multicolumn{2}{l}{\bf{Testresults:}}\\
- \midrule
- \bf{\,Info } & Setting preconditions (Valve setpoint to 20.0)\\
- \bf{\,\textcolor{green}{Success} } & Valve temperature setpoint (is not default temperature) is correct (Content True and Type is $<$class 'bool'$>$).\\
- \bf{\,Info } & Triggering set to default temperature (25.0)\\
- \bf{\,\textcolor{green}{Success} } & Valve temperature setpoint is correct (Content 25 and Type is $<$class 'int'$>$).\\
- \bottomrule
- \end{longtabu}
-
-
-
-
-
-
-
-
- \subsection{ Summer mode test: zigbee/\allowbreak gfw/\allowbreak dirk/\allowbreak heating\_valve }
-
-
- \paragraph{Testsummary}\mbox{}\\
- This test was passed with the state: {\bf \textcolor{green}{Success}}.
- \begin{longtabu} to \linewidth {lX}
- \toprule
- Caller: & /\allowbreak home/\allowbreak dirk/\allowbreak my\_repositories/\allowbreak smarthome/\allowbreak smart\_brain\_test/\allowbreak tests/\allowbreak heating.py (61)\\
- Start-Time: & 2023-02-09 07:53:04,972\\
- Finished-Time: & 2023-02-09 07:53:05,874\\
- Time-Consumption & 0.902s\\
- \midrule
- \multicolumn{2}{l}{\bf{Testresults:}}\\
- \midrule
- \bf{\,Info } & Setting preconditions (Default setpoint)\\
- \bf{\,\textcolor{green}{Success} } & Summer mode is correct (Content False and Type is $<$class 'bool'$>$).\\
- \bf{\,Info } & Activating summer mode\\
- \bf{\,\textcolor{green}{Success} } & Summer mode is correct (Content True and Type is $<$class 'bool'$>$).\\
- \bf{\,\textcolor{green}{Success} } & Temperature setpoint is correct (Content 5 and Type is $<$class 'int'$>$).\\
- \bf{\,Info } & Deactivating summer mode\\
- \bf{\,\textcolor{green}{Success} } & Summer mode is correct (Content False and Type is $<$class 'bool'$>$).\\
- \bf{\,\textcolor{green}{Success} } & Temperature setpoint is correct (Content 25 and Type is $<$class 'int'$>$).\\
- \bottomrule
- \end{longtabu}
-
-
-
-
-
-
-
-
- \subsection{ User temperature setpoint test for device and virtual device: zigbee/\allowbreak gfw/\allowbreak dirk/\allowbreak heating\_valve }
-
-
- \paragraph{Testsummary}\mbox{}\\
- This test was passed with the state: {\bf \textcolor{green}{Success}}.
- \begin{longtabu} to \linewidth {lX}
- \toprule
- Caller: & /\allowbreak home/\allowbreak dirk/\allowbreak my\_repositories/\allowbreak smarthome/\allowbreak smart\_brain\_test/\allowbreak tests/\allowbreak heating.py (17)\\
- Start-Time: & 2023-02-09 07:53:05,874\\
- Finished-Time: & 2023-02-09 07:53:07,076\\
- Time-Consumption & 1.203s\\
- \midrule
- \multicolumn{2}{l}{\bf{Testresults:}}\\
- \midrule
- \bf{\,Info } & Changing valve temperature setpoint to '20.0'\\
- \bf{\,\textcolor{green}{Success} } & Virtual device valve temperature is correct (Content 20 and Type is $<$class 'int'$>$).\\
- \bf{\,\textcolor{green}{Success} } & Virtual device user temperature is correct (Content 20 and Type is $<$class 'int'$>$).\\
- \bf{\,Info } & Changing videv user temperature setpoint to '25.0'\\
- \bf{\,\textcolor{green}{Success} } & Valve device temperature setpoint is correct (Content 25 and Type is $<$class 'int'$>$).\\
- \bf{\,\textcolor{green}{Success} } & Virtual device valve temperature is correct (Content 25 and Type is $<$class 'int'$>$).\\
- \bf{\,Info } & Changing valve temperature setpoint to '20.0'\\
- \bf{\,\textcolor{green}{Success} } & Virtual device valve temperature is correct (Content 20 and Type is $<$class 'int'$>$).\\
- \bf{\,\textcolor{green}{Success} } & Virtual device user temperature is correct (Content 20 and Type is $<$class 'int'$>$).\\
- \bf{\,Info } & Changing videv user temperature setpoint to '25.0'\\
- \bf{\,\textcolor{green}{Success} } & Valve device temperature setpoint is correct (Content 25 and Type is $<$class 'int'$>$).\\
- \bf{\,\textcolor{green}{Success} } & Virtual device valve temperature is correct (Content 25 and Type is $<$class 'int'$>$).\\
- \bottomrule
- \end{longtabu}
-
-
-
-
-
-
-
-
-
- \end{document}
|