added some parts
This commit is contained in:
parent
6c7fd837ad
commit
a845308b99
|
@ -539,6 +539,12 @@ public class DocumentDTO implements Serializable {
|
||||||
\item ermöglichen die Modellierung der Benutzeroberfläche für Tests
|
\item ermöglichen die Modellierung der Benutzeroberfläche für Tests
|
||||||
\item reduziert Code duplication
|
\item reduziert Code duplication
|
||||||
\item verbessert Testwartbarkeit und macht Tests robuster
|
\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}
|
\end{itemize}
|
||||||
\begin{figure}[!htp]
|
\begin{figure}[!htp]
|
||||||
\centering
|
\centering
|
||||||
|
|
|
@ -119,6 +119,8 @@ Abschnitte der standalone.xml
|
||||||
\item profile (z.B. JPA Subsystem)
|
\item profile (z.B. JPA Subsystem)
|
||||||
\item interfaces (z.B. \${jboss.bind.address:127.0.0.1})
|
\item interfaces (z.B. \${jboss.bind.address:127.0.0.1})
|
||||||
\item socket-binding-group (z.B \${jboss.http.port:8080})
|
\item socket-binding-group (z.B \${jboss.http.port:8080})
|
||||||
|
\item Rechte (Management-Realm)
|
||||||
|
\item Datenbankzugriffsparameter
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
|
|
||||||
\begin{code}
|
\begin{code}
|
||||||
|
@ -215,15 +217,14 @@ SQL stdout logging
|
||||||
\end{figure}
|
\end{figure}
|
||||||
\subsection{web.xml}
|
\subsection{web.xml}
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
|
|
||||||
%TODO des is zu ungenau!
|
|
||||||
\item konfiguriert den Java Webserver (Wildfly - JBOSS)
|
\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}
|
\item befindet sich im Ordner \textbf{src/main/webapp/WEB-INF/web.xml}
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
\begin{minted}[linenos,breaklines=true]{xml}
|
\begin{minted}[linenos,breaklines=true]{xml}
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<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>
|
||||||
<servlet-name>Faces Servlet</servlet-name>
|
<servlet-name>Faces Servlet</servlet-name>
|
||||||
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
|
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
|
||||||
|
@ -239,14 +240,6 @@ SQL stdout logging
|
||||||
<description>administrators</description>
|
<description>administrators</description>
|
||||||
<role-name>ADMIN</role-name>
|
<role-name>ADMIN</role-name>
|
||||||
</security-role>
|
</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 constraints -->
|
||||||
<security-constraint>
|
<security-constraint>
|
||||||
|
@ -259,57 +252,6 @@ SQL stdout logging
|
||||||
</auth-constraint>
|
</auth-constraint>
|
||||||
</security-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>
|
<login-config>
|
||||||
<auth-method>FORM</auth-method>
|
<auth-method>FORM</auth-method>
|
||||||
<realm-name>pse</realm-name>
|
<realm-name>pse</realm-name>
|
||||||
|
@ -323,8 +265,8 @@ SQL stdout logging
|
||||||
\end{minted}
|
\end{minted}
|
||||||
\subsection{pom.xml}
|
\subsection{pom.xml}
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item Resource plugin – klar für Ressourcen
|
\item \textit{resources}-plugin (bindet die Serverressourcen ein - Ordner \textit{configuration} im Projekt - z.B. \textit{standalone-psoe.xml})
|
||||||
\item Wildfly – server
|
\item Wildfly (JBoss)– Webserver
|
||||||
\begin{multicols}{2}
|
\begin{multicols}{2}
|
||||||
\begin{enumerate}
|
\begin{enumerate}
|
||||||
\item Compile
|
\item Compile
|
||||||
|
@ -336,12 +278,20 @@ SQL stdout logging
|
||||||
\item Gui test
|
\item Gui test
|
||||||
\end{enumerate}
|
\end{enumerate}
|
||||||
\end{multicols}
|
\end{multicols}
|
||||||
\item Primeafce = jsf Framework
|
\item Primeface = jsf Framework
|
||||||
\item Jacoco = test Coverage
|
\item Jacoco = test Coverage
|
||||||
\item Slf4j = logger
|
\item Slf4j = logger
|
||||||
\item Jaxb – xml
|
\item Jaxb – xml
|
||||||
\item Cdi = context dependancy injection
|
\item Cdi = context dependancy injection
|
||||||
\end{itemize}
|
\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}
|
\section{Frageart Prüfung}
|
||||||
Welche Fehler können bei Exception-Handling vorkommen in unserem Projekt?? – wie funktioniert es grundsätzlich in unserem Code
|
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}
|
\end{minted}
|
||||||
\subsection{Destructive Wrapping}
|
\subsection{Destructive Wrapping - Logging fehlt - Information geht verloren}
|
||||||
\begin{minted}[linenos,breaklines=true]{java}
|
\begin{minted}[linenos,breaklines=true]{java}
|
||||||
package at.fhj.swd.psoe.service.impl;
|
package at.fhj.swd.psoe.service.impl;
|
||||||
...
|
...
|
||||||
|
@ -510,4 +460,17 @@ public void saveUser(UserDTO userDTO) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
\end{minted}
|
\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}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
Binary file not shown.
After Width: | Height: | Size: 267 KiB |
Loading…
Reference in New Issue