update pdf

This commit is contained in:
Ali Can Zeybek
2024-12-06 23:14:03 +03:00
parent ce724c1072
commit 98ede5c454
4 changed files with 108 additions and 6 deletions

View File

@@ -25,11 +25,21 @@
\newlabel{tab:partitioning}{{II}{1}{Partitioning for input values with conditions and selected values.\relax }{table.caption.2}{}} \newlabel{tab:partitioning}{{II}{1}{Partitioning for input values with conditions and selected values.\relax }{table.caption.2}{}}
\@writefile{lot}{\contentsline {table}{\numberline {III}{\ignorespaces Test cases generated for equivalence testing\relax }}{1}{table.caption.3}\protected@file@percent } \@writefile{lot}{\contentsline {table}{\numberline {III}{\ignorespaces Test cases generated for equivalence testing\relax }}{1}{table.caption.3}\protected@file@percent }
\newlabel{tab:valid_scenarios}{{III}{1}{Test cases generated for equivalence testing\relax }{table.caption.3}{}} \newlabel{tab:valid_scenarios}{{III}{1}{Test cases generated for equivalence testing\relax }{table.caption.3}{}}
\@writefile{toc}{\contentsline {section}{\numberline {III}Boundary Value Testing}{1}{section.3}\protected@file@percent } \@writefile{toc}{\contentsline {subsection}{\numberline {\mbox {II-C}}Boundary Value Testing}{1}{subsection.2.3}\protected@file@percent }
\@writefile{lot}{\contentsline {table}{\numberline {IV}{\ignorespaces Boundary values for input parameters.\relax }}{1}{table.caption.4}\protected@file@percent } \@writefile{lot}{\contentsline {table}{\numberline {IV}{\ignorespaces Boundary values for input parameters.\relax }}{1}{table.caption.4}\protected@file@percent }
\newlabel{boundaries}{{IV}{1}{Boundary values for input parameters.\relax }{table.caption.4}{}} \newlabel{boundaries}{{IV}{1}{Boundary values for input parameters.\relax }{table.caption.4}{}}
\@writefile{lot}{\contentsline {table}{\numberline {V}{\ignorespaces Test cases generated for boundary value testing\relax }}{2}{table.caption.5}\protected@file@percent } \@writefile{lot}{\contentsline {table}{\numberline {V}{\ignorespaces Test cases generated for boundary value testing\relax }}{2}{table.caption.5}\protected@file@percent }
\newlabel{tab:test_cases}{{V}{2}{Test cases generated for boundary value testing\relax }{table.caption.5}{}} \newlabel{tab:test_cases}{{V}{2}{Test cases generated for boundary value testing\relax }{table.caption.5}{}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {\mbox {III-}1}Test Cases}{2}{subsubsection.3.0.1}\protected@file@percent } \@writefile{toc}{\contentsline {subsubsection}{\numberline {\mbox {II-C}1}Test Cases}{2}{subsubsection.2.3.1}\protected@file@percent }
\@writefile{toc}{\contentsline {section}{\numberline {III}Experiment 2}{2}{section.3}\protected@file@percent }
\@writefile{toc}{\contentsline {subsection}{\numberline {\mbox {III-A}}Decision Table Testing}{2}{subsection.3.1}\protected@file@percent }
\@writefile{lot}{\contentsline {table}{\numberline {VI}{\ignorespaces Test cases generated for for decision table testing\relax }}{2}{table.caption.6}\protected@file@percent }
\newlabel{tab:access_control_test_cases}{{VI}{2}{Test cases generated for for decision table testing\relax }{table.caption.6}{}}
\@writefile{toc}{\contentsline {subsection}{\numberline {\mbox {III-B}}Equivalence Testing}{2}{subsection.3.2}\protected@file@percent }
\@writefile{lot}{\contentsline {table}{\numberline {VII}{\ignorespaces Test cases generated for for equivalence testing\relax }}{2}{table.caption.7}\protected@file@percent }
\newlabel{tab:representative_conditions}{{VII}{2}{Test cases generated for for equivalence testing\relax }{table.caption.7}{}}
\@writefile{toc}{\contentsline {subsection}{\numberline {\mbox {III-C}}Boundary Value Testing}{2}{subsection.3.3}\protected@file@percent }
\@writefile{lot}{\contentsline {table}{\numberline {VIII}{\ignorespaces Test cases generated for for boundary value testing\relax }}{2}{table.caption.8}\protected@file@percent }
\newlabel{tab:hour_boundaries}{{VIII}{2}{Test cases generated for for boundary value testing\relax }{table.caption.8}{}}
\@writefile{toc}{\contentsline {section}{\numberline {IV}Conclusion}{2}{section.4}\protected@file@percent } \@writefile{toc}{\contentsline {section}{\numberline {IV}Conclusion}{2}{section.4}\protected@file@percent }
\gdef \@abspage@last{2} \gdef \@abspage@last{2}

View File

@@ -3,6 +3,10 @@
\BOOKMARK [2][-]{subsection.2.1}{\376\377\000D\000e\000c\000i\000s\000i\000o\000n\000\040\000T\000a\000b\000l\000e\000\040\000T\000e\000s\000t\000i\000n\000g}{section.2}% 3 \BOOKMARK [2][-]{subsection.2.1}{\376\377\000D\000e\000c\000i\000s\000i\000o\000n\000\040\000T\000a\000b\000l\000e\000\040\000T\000e\000s\000t\000i\000n\000g}{section.2}% 3
\BOOKMARK [2][-]{subsection.2.2}{\376\377\000E\000q\000u\000i\000v\000a\000l\000e\000n\000c\000e\000\040\000T\000e\000s\000t\000i\000n\000g}{section.2}% 4 \BOOKMARK [2][-]{subsection.2.2}{\376\377\000E\000q\000u\000i\000v\000a\000l\000e\000n\000c\000e\000\040\000T\000e\000s\000t\000i\000n\000g}{section.2}% 4
\BOOKMARK [3][-]{subsubsection.2.2.1}{\376\377\000E\000q\000u\000i\000v\000a\000l\000e\000n\000c\000e\000\040\000P\000a\000r\000t\000i\000t\000i\000o\000n\000s}{subsection.2.2}% 5 \BOOKMARK [3][-]{subsubsection.2.2.1}{\376\377\000E\000q\000u\000i\000v\000a\000l\000e\000n\000c\000e\000\040\000P\000a\000r\000t\000i\000t\000i\000o\000n\000s}{subsection.2.2}% 5
\BOOKMARK [1][-]{section.3}{\376\377\000B\000o\000u\000n\000d\000a\000r\000y\000\040\000V\000a\000l\000u\000e\000\040\000T\000e\000s\000t\000i\000n\000g}{}% 6 \BOOKMARK [2][-]{subsection.2.3}{\376\377\000B\000o\000u\000n\000d\000a\000r\000y\000\040\000V\000a\000l\000u\000e\000\040\000T\000e\000s\000t\000i\000n\000g}{section.2}% 6
\BOOKMARK [2][-]{subsubsection.3.0.1}{\376\377\000T\000e\000s\000t\000\040\000C\000a\000s\000e\000s}{section.3}% 7 \BOOKMARK [3][-]{subsubsection.2.3.1}{\376\377\000T\000e\000s\000t\000\040\000C\000a\000s\000e\000s}{subsection.2.3}% 7
\BOOKMARK [1][-]{section.4}{\376\377\000C\000o\000n\000c\000l\000u\000s\000i\000o\000n}{}% 8 \BOOKMARK [1][-]{section.3}{\376\377\000E\000x\000p\000e\000r\000i\000m\000e\000n\000t\000\040\0002}{}% 8
\BOOKMARK [2][-]{subsection.3.1}{\376\377\000D\000e\000c\000i\000s\000i\000o\000n\000\040\000T\000a\000b\000l\000e\000\040\000T\000e\000s\000t\000i\000n\000g}{section.3}% 9
\BOOKMARK [2][-]{subsection.3.2}{\376\377\000E\000q\000u\000i\000v\000a\000l\000e\000n\000c\000e\000\040\000T\000e\000s\000t\000i\000n\000g}{section.3}% 10
\BOOKMARK [2][-]{subsection.3.3}{\376\377\000B\000o\000u\000n\000d\000a\000r\000y\000\040\000V\000a\000l\000u\000e\000\040\000T\000e\000s\000t\000i\000n\000g}{section.3}% 11
\BOOKMARK [1][-]{section.4}{\376\377\000C\000o\000n\000c\000l\000u\000s\000i\000o\000n}{}% 12

Binary file not shown.

View File

@@ -128,7 +128,7 @@ Following are the valid and invalid partitions of program 1.
The total test case generation and implementation took 40 minutes. While running 7 test cases took 0.028 seconds , running the full `mvn test` command took 6.49 seconds. The total test case generation and implementation took 40 minutes. While running 7 test cases took 0.028 seconds , running the full `mvn test` command took 6.49 seconds.
\section{Boundary Value Testing} \subsection{Boundary Value Testing}
For boundary value testing `delivery\_time` does not eligable since enum's do not have boundaries. For other two variables, values just before, exactly and just above valid input range and logical branching boundaries are selected. Those values are {-1,0,1} for both `number\_of\_items` and `total\_cost` while branching boundary values are {3,4} and {100,101} respectively as can seen in \autoref{boundaries} For boundary value testing `delivery\_time` does not eligable since enum's do not have boundaries. For other two variables, values just before, exactly and just above valid input range and logical branching boundaries are selected. Those values are {-1,0,1} for both `number\_of\_items` and `total\_cost` while branching boundary values are {3,4} and {100,101} respectively as can seen in \autoref{boundaries}
@@ -179,6 +179,94 @@ Using above boundaries following test scenarios generated.
The total test case generation and implementation took 24 minutes. While running 9 test cases took 0.026 seconds , running the full `mvn test` command took 7.01 seconds. The total test case generation and implementation took 24 minutes. While running 9 test cases took 0.026 seconds , running the full `mvn test` command took 7.01 seconds.
% Conclusion Section % Conclusion Section
\section{Experiment 2}
\subsection{Decision Table Testing}
The decision table enumerates various combinations of conditions (employee status, special authorization, auditor status, hour of day, and weekend) and shows the expected outcome. The conditions chosen are representative samples from the decision space.
\begin{table}[ht]
\centering
\resizebox{\columnwidth}{!}{%
\begin{tabular}{|c|c|c|c|c|c|c|}
\hline
\textbf{\#} & \textbf{isEmployee} & \textbf{hasSpecialAuth} & \textbf{isAuditor} & \textbf{hourOfDay} & \textbf{isWeekend} & \textbf{Expected Result} \\ \hline
1 & False & False & False & 9 & False & Deny (false) \\ \hline
2 & True & False & False & 9 & False & Allow (true) \\ \hline
3 & True & True & False & 8 & False & Allow (true) \\ \hline
4 & True & False & False & 17 & False & Deny (false) \\ \hline
5 & True & False & False & 9 & True & Deny (false) \\ \hline
6 & False & False & True & 9 & True & Allow (true) \\ \hline
7 & False & False & True & 8 & False & Deny (false) \\ \hline
8 & True & True & False & 17 & True & Allow (true) \\ \hline
\end{tabular}}
\caption{Test cases generated for for decision table testing}
\label{tab:access_control_test_cases}
\end{table}
The total test case generation and implementation took around 1 hour and 30 minutes. While running above cases took 5709 nanoseconds.
\subsection{Equivalence Testing}
Here, input domains are divided into equivalence classes. We pick one representative test from each class to reduce the total number of tests while still ensuring coverage of all logical categories.
\begin{table}[ht]
\centering
\resizebox{\columnwidth}{!}{%
\begin{tabular}{|c|p{8cm}|c|}
\hline
\textbf{\#} & \textbf{Conditions (Representative)} & \textbf{Expected Result} \\ \hline
1 & Not Employee, Not Auditor, Hour=10 (within 916), Weekday=false (not weekend) & Deny (false) \\ \hline
2 & Employee, No Special Auth, Not Auditor, Hour=10 (within 916), Weekday=false & Allow (true) \\ \hline
3 & Employee, Special Auth, Any Hour (e.g., 17), Weekend=true & Allow (true) \\ \hline
4 & Auditor, Hour=16 (within 916), Weekend=true & Allow (true) \\ \hline
5 & Auditor, Hour=8 (before 9), Weekday=false & Deny (false) \\ \hline
\end{tabular}}
\caption{Test cases generated for for equivalence testing}
\label{tab:representative_conditions}
\end{table}
The total test case generation and implementation took around 45 minutes. While running above cases took 3917 nanoseconds.
Equivalence Classes Considered:
\begin{enumerate}
\item Employee vs. Non-Employee
\item Auditor vs. Non-Auditor
\item Special Authorization vs. No Special Authorization
\item Inside vs. Outside Working Hours (916)
\item Weekend vs. Weekday
\end{enumerate}
\subsection{Boundary Value Testing}
Boundary values are chosen around the critical time limits. For this scenario, critical hours are 8 (just before 9), 9 (start of working hours), 16 (end of working hours), and 17 (just after 16).
\begin{table}[ht]
\centering
\resizebox{\columnwidth}{!}{%
\begin{tabular}{|c|p{8cm}|c|}
\hline
\textbf{\#} & \textbf{Conditions (Focus on Hour Boundaries)} & \textbf{Expected Result} \\ \hline
1 & Employee, No Special Auth, Hour=8 (just before start), Weekday=false & Deny (false) \\ \hline
2 & Employee, No Special Auth, Hour=9 (start), Weekday=false & Allow (true) \\ \hline
3 & Employee, No Special Auth, Hour=16 (end), Weekday=false & Allow (true) \\ \hline
4 & Employee, No Special Auth, Hour=17 (just after end), Weekday=false & Deny (false) \\ \hline
5 & Auditor, Hour=8 (before start), Weekend or Weekday (e.g., false) & Deny (false) \\ \hline
6 & Auditor, Hour=9 (start), Weekend=true & Allow (true) \\ \hline
7 & Employee, Special Auth, Hour=8 (any boundary), Weekend=true & Allow (true) \\ \hline
\end{tabular}}
\caption{Test cases generated for for boundary value testing}
\label{tab:hour_boundaries}
\end{table}
The total test case generation and implementation took around 1 hour and 15 minutes. While running above cases took 5876 nanoseconds.
Boundary Values Considered:
\begin{enumerate}
\item Hours: 8, 9, 16, 17
\item Weekend vs. Weekday, Employee vs. Auditor, Special Auth variations
\end{enumerate}
\section{Conclusion} \section{Conclusion}
\end{document} \end{document}