forked from ui-cs383/Use-Cases
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathusecases.tex
More file actions
91 lines (83 loc) · 3.09 KB
/
usecases.tex
File metadata and controls
91 lines (83 loc) · 3.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
\documentclass[12pt,letterpaper]{scrreprt}
% Includes
\usepackage{usecases}
\usepackage{enumitem}
\title{Use Cases Template}
\author{CS383 Python Team}
\date{}
\begin{document}
\maketitle
\chapter{Use cases}
This isn't necessarily what it will look like in the end, but this is just a basic template that I have thrown together so that everyone can see just what the use case format looks like. There are some parts that aren't really the \LaTeX\ way (e.g. enumerating the use cases ourselves and specifying the numbers in alternate scenarios) but it will suffice, I believe.
Also, I recommend putting each use case in its own subsection and name the subsection after the use case. The reason behind this is it will then show up in the table of contents when the table of contents is shown and because it makes identifying each individual use case easier. See section 1.2 as an example.
\section{One use case here}
\begin{usecase}
\addtitle{Use Case I}{Title goes here}
\addfield{Precondition}{Precondition goes here}
\addfield{Actor}{Rebel Player}
\addscenario{Success Scenario}{
\item Does something first
\item Then does this.
\item This happens after that!
\item Finally it ends.
}
\addscenario{Alternate Scenario 1}{
\item[2.a] Something alternate happened in step 2!
\begin{enumerate}[label=\arabic*.]
\item This happened first
\item New result here
\end{enumerate}
\item[5.a] Step 5 (which doesn't even exist!) had an issue:
\begin{enumerate}[label=\arabic*.]
\item Step 5 doesn't exist so start over.
\end{enumerate}
}
\end{usecase}
\section{Two use cases here}
\subsection{Use Case - Use Case II: We unfortunately have to enumerate the use cases ourselves}
\begin{usecase}
\addtitle{Use Case II}{We unfortunately have to enumerate the use cases ourselves}
\addfield{Precondition}{Precondition goes here}
\addfield{Actor}{Rebel Player}
\addscenario{Success Scenario}{
\item Does something first
\item Then does this.
\item This happens after that!
\item Finally it ends.
}
\addscenario{Alternate Scenario 1}{
\item[2.a] Something alternate happened in step 2!
\begin{enumerate}[label=\arabic*.]
\item This happened first
\item New result here
\end{enumerate}
\item[5.a] Step 5 (which doesn't even exist!) had an issue:
\begin{enumerate}[label=\arabic*.]
\item Step 5 doesn't exist so start over.
\end{enumerate}
}
\end{usecase}
\subsection{Use Case - Use Case III: Title goes here}
\begin{usecase}
\addtitle{Use Case III}{Title goes here}
\addfield{Precondition}{Precondition goes here}
\addfield{Actor}{Rebel Player}
\addscenario{Success Scenario}{
\item Does something first
\item Then does this.
\item This happens after that!
\item Finally it ends.
}
\addscenario{Alternate Scenario 1}{
\item[2.a] Something alternate happened in step 2!
\begin{enumerate}[label=\arabic*.]
\item This happened first
\item New result here
\end{enumerate}
\item[5.a] Step 5 (which doesn't even exist!) had an issue:
\begin{enumerate}[label=\arabic*.]
\item Step 5 doesn't exist so start over.
\end{enumerate}
}
\end{usecase}
\end{document}