-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestsNotes.txt
More file actions
206 lines (163 loc) · 5.2 KB
/
TestsNotes.txt
File metadata and controls
206 lines (163 loc) · 5.2 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
==========
Unit Tests:
==========
All spark:
Verify we get 2 values back from all spark
verify allspark token is cached and same token is used on same call in every subsequent call to API, can be verifed in the functional test suite too.
Post (Create) :
verify there are 10 values in the request call to transformers
verify there are 12 values in the response
verify the type of value for each (integer vs decimal, text, null values..etc) and error handling around that
GET:
verify we get a structured list name "transformers"
Verify each object in list, has the right number of values, and right type for each value
PUT(Update):
verify there are 11 values in the request call to transformers
verify there are 12 values in the response
verify the type of value for each (integer vs decimal, text, null values..etc) and error handling around that
Delete:
verify there is 1 values in the request call to transformers ({transformerID})
verify the type of value (text, null values) and error handling around that
*no mention of requirment for response, but verify we get a confirm on deletion, that's always nice to have.*
UI Page:
Verify there is a UI to input data and recieve response
Verify a button exist on screen to start battle
==========
Functional:
==========
1)Verify inputting through UI (whichever way we design it)
a)create Soundwave, D, 8,9,2,6,7,5,6,10
creates a transformer
b)Update ID,Soundwave, D, 8,9,2,6,7,5,6,10
updates a transformer (and not create a new one)
c)Get transformers, list all existing ones within system
d) Button to launch battle takes list of potential fighters
2) Verify UI displays results in this format
1 battle
Winning team (Decepticons): Soundwave
Survivors from the losing team (Autobots): Hubcap
or
1 battle
Winning team (Autobots): Optimus Prime
Survivors from the winning team (Autobots): Hubcap
3) Verify The teams should be sorted by rank and faced off one on one against each other in order to determine a victor, the loser is eliminated
4) Battle functionality :
*let's get the easy ones out of the way*
* Optimus Prime and PredaKing outlier scenarios:
a) Optimus Prime against oponent X (not PK) , OP wins
b) PredaKing agsinst oponsne X (not OP) , PK wins
c) OP vs PK , both lose, game finish immediatly. all lose, no winners
d) OP vs OP , both lose, game finish immediatly. all lose, no winners
e) PK vs PK , both lose, game finish immediatly. all lose, no winners
------------------------------
*Run away, lose battle, no destruction scenarios:
Transformer A vs Transformer B
Main base scenario from requirement
T_A T_B
Courage 4 8 T_A is 4 points less than T_B
Strength 3 6 AND 3 points less than T_B
Result Run Win
T_A T_B
Courage 3 8 T_A is 5 points less than T_B
Strength 3 6 AND 3 points less than T_B
Result Run Win
T_A T_B
Courage 5 8 T_A is 3 points less than T_B
Strength 3 6 AND 3 points less than T_B
Result Continue
T_A T_B
Courage 4 8 T_A is 4 points less than T_B
Strength 2 6 AND 4 points less than T_B
Result Run Win
T_A T_B
Courage 4 8 T_A is 4 points less than T_B
Strength 4 6 AND 2 points less than T_B
Result Continue
T_A T_B
Courage 2 8 T_A is 6 points less than T_B
Strength 2 6 AND 4 points less than T_B
Result Run Win
T_A T_B
Courage 6 8 T_A is 2 points less than T_B
Strength 6 6 AND 0 points less than T_B
Result Continue
not sure if we want to test the opposite also,but it's the same tests flipped. do it if we have time
e.g.
T_A T_B
Courage 8 4 T_B is 4 points less than T_A
Strength 6 3 AND 3 points less than T_A
Result Win Run
------------------------------
* Skill win overpower scenarios:
Transformer A vs Transformer B
Main base scenario from requirement
T_A T_B
Skill 3 6 T_B is 3 points more than T_A
Result Die Win
T_A T_B
Skill 2 6 T_B is 4 points more than T_A
Result Die Win
T_A T_B
Skill 6 6 T_B is 0 points more/less than T_A
Result Continue
T_A T_B
Skill 8 6 T_B is 2 points less than T_A
Result Continue
------------------------------
*Main Fight Scenarios:
Overall rating wins
T_A T_B
Overall 53 60 T_B is 7 points more than T_A
Result Die Win
T_A T_B
Overall 63 60 T_A is 3 points more than T_B
Result Win Die
T_A T_B
Overall 60 60 T_A tied with T_A
Result Die Die
------------------------------
Battle management scenarios:
1) Verify Team number imbalance scenarios:
Team A has 3
Team B has 5
3 battles
last bottom 2 ranked in Team B survive
b)
Team A has 1
Team B has 1
1 battle
no survivors
c)
Team A has 3
Team B has 2
2 battles
last bottom 1 ranked from team A survive
2) Verify overal Team winner scenarios (can resue team imbalance cases)
Team A has 3
Team B has 5
3 battles
TeamA TeamB
Battle 3Win 0Win
Result TeamA
TeamA TeamB
Battle 1Win 2Win
Result TeamB
(we can add more iterations, but it's just flipping their sides)
b)
Team A has 1
Team B has 1
1 battle
no survivors
TeamA TeamB
Battle 1Win 0Win
Result TeamA
c)
Team A has 3
Team B has 2
2 battles
TeamA TeamB
Battle 2Win 0Win
Result TeamA
TeamA TeamB
Battle 1Win 1Win
Result No Winners/All destruction/ tie ?