added some parts

This commit is contained in:
Moser Benjamin 2019-03-05 01:04:19 +01:00
parent 6c7fd837ad
commit a845308b99
6 changed files with 36 additions and 67 deletions

View File

@ -539,6 +539,12 @@ public class DocumentDTO implements Serializable {
\item ermöglichen die Modellierung der Benutzeroberfläche für Tests
\item reduziert Code duplication
\item verbessert Testwartbarkeit und macht Tests robuster
\subsection{Page Object Pattern lt. Zahnlücke}
\begin{itemize}
\item Trennung zwischen Testmethode und Page Code
\item Je Page eine Klasse mit Services / Operationen
\item Return einer Operation ist ein PageObject
\item Einfachere Wartbarkeit (Kapselung in PageObject)
\end{itemize}
\begin{figure}[!htp]
\centering

View File

@ -119,6 +119,8 @@ Abschnitte der standalone.xml
\item profile (z.B. JPA Subsystem)
\item interfaces (z.B. \${jboss.bind.address:127.0.0.1})
\item socket-binding-group (z.B \${jboss.http.port:8080})
\item Rechte (Management-Realm)
\item Datenbankzugriffsparameter
\end{itemize}
\begin{code}
@ -215,15 +217,14 @@ SQL stdout logging
\end{figure}
\subsection{web.xml}
\begin{itemize}
%TODO des is zu ungenau!
\item konfiguriert den Java Webserver (Wildfly - JBOSS)
\item Einbindung des Faces-Servlet (FrontController - Implementierung, Zugriffskontrolle, Rollenkonfiguration)
\item befindet sich im Ordner \textbf{src/main/webapp/WEB-INF/web.xml}
\end{itemize}
\begin{minted}[linenos,breaklines=true]{xml}
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" version="3.1">
...
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
@ -239,14 +240,6 @@ SQL stdout logging
<description>administrators</description>
<role-name>ADMIN</role-name>
</security-role>
<security-role>
<description>portal administrators</description>
<role-name>PORTALADMIN</role-name>
</security-role>
<security-role>
<description>standard user</description>
<role-name>USER</role-name>
</security-role>
<!-- Security constraints -->
<security-constraint>
@ -259,57 +252,6 @@ SQL stdout logging
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>community area</web-resource-name>
<url-pattern>/community/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>USER</role-name>
<role-name>PORTALADMIN</role-name>
<role-name>ADMIN</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>user administration area</web-resource-name>
<url-pattern>/userAdministration/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>USER</role-name>
<role-name>PORTALADMIN</role-name>
<role-name>ADMIN</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>user functionalities</web-resource-name>
<url-pattern>/user.xhtml</url-pattern>
<url-pattern>/userlist.xhtml</url-pattern>
<url-pattern>/notImplemented.xhtml</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>USER</role-name>
<role-name>PORTALADMIN</role-name>
<role-name>ADMIN</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>other functionalities</web-resource-name>
<url-pattern>/notImplemented.xhtml</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>USER</role-name>
<role-name>PORTALADMIN</role-name>
<role-name>ADMIN</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>pse</realm-name>
@ -323,8 +265,8 @@ SQL stdout logging
\end{minted}
\subsection{pom.xml}
\begin{itemize}
\item Resource plugin klar für Ressourcen
\item Wildfly server
\item \textit{resources}-plugin (bindet die Serverressourcen ein - Ordner \textit{configuration} im Projekt - z.B. \textit{standalone-psoe.xml})
\item Wildfly (JBoss) Webserver
\begin{multicols}{2}
\begin{enumerate}
\item Compile
@ -336,12 +278,20 @@ SQL stdout logging
\item Gui test
\end{enumerate}
\end{multicols}
\item Primeafce = jsf Framework
\item Primeface = jsf Framework
\item Jacoco = test Coverage
\item Slf4j = logger
\item Jaxb xml
\item Cdi = context dependancy injection
\item Cdi = context dependancy injection
\end{itemize}
\subsubsection{Aufbau pom.xml}
\begin{figure}[h]
\centering
\includegraphics[width=0.3\linewidth]{pics/pom-structure}
\includegraphics[width=0.3\linewidth]{pics/pom-properties}
\label{fig:pom}
\end{figure}
\section{Frageart Prüfung}
Welche Fehler können bei Exception-Handling vorkommen in unserem Projekt?? wie funktioniert es grundsätzlich in unserem Code
@ -374,7 +324,7 @@ Anstatt von Null einfach eine Leere Liste bzw. ein default Objekt (oder new <Obj
}
}
\end{minted}
\subsection{Destructive Wrapping}
\subsection{Destructive Wrapping - Logging fehlt - Information geht verloren}
\begin{minted}[linenos,breaklines=true]{java}
package at.fhj.swd.psoe.service.impl;
...
@ -510,4 +460,17 @@ public void saveUser(UserDTO userDTO) {
}
}
\end{minted}
\section{Tests}
\subsection{Testpyramide}
\begin{figure}[h]
\centering
\includegraphics[width=0.9\linewidth]{pics/testpyramide}
\caption{}
\label{fig:testpyramide}
\end{figure}
\subsection{Unit}
\subsection{Integration}
\subsection{Selenium bzw. GUI}

BIN
pics/pom-properties.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
pics/pom-structure.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
pics/testpyramide.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 KiB

BIN
pse.pdf

Binary file not shown.