304 satır
12 KiB
TeX
304 satır
12 KiB
TeX
|
|
\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} |