sh1k4ku commited on
Commit
ae252bf
·
verified ·
1 Parent(s): 443f404

Add point-value annotations to assignment3.html (25 pts total breakdown)

Browse files
Files changed (1) hide show
  1. assignment3.html +19 -14
assignment3.html CHANGED
@@ -22,6 +22,7 @@
22
  h1 { font-size:22px; margin:0 0 4px; }
23
  h2 { font-size:18px; margin:34px 0 6px; padding-top:14px; border-top:1px solid var(--border); }
24
  h3 { font-size:14px; color:var(--accent); margin:18px 0 6px; }
 
25
  p { margin:8px 0; }
26
  code, .mono { font-family:"SF Mono",Menlo,Consolas,monospace; }
27
  pre { background:#181825; border:1px solid var(--border); border-radius:8px; padding:12px 14px; overflow:auto; font-size:13px; }
@@ -104,7 +105,7 @@
104
  </head>
105
  <body>
106
  <div class="wrap">
107
- <h1>Assignment 3: Software Testing</h1>
108
  <p class="muted">Answer all questions below — one tab per question. Your answers auto-save in this browser; export them as JSON at the bottom when done.</p>
109
 
110
  <div class="layout">
@@ -119,14 +120,14 @@
119
 
120
  <!-- ============ Q1 ============ -->
121
  <section class="pane active" data-tab="q1">
122
- <h2>Q1 Test Scaffolding Concepts</h2>
123
  <p class="muted">Multiple answers may apply unless otherwise stated.</p>
124
 
125
- <h3>Q1.1</h3>
126
  <p>Which of the following may be used as test scaffolding?</p>
127
  <div id="q11opts"></div>
128
 
129
- <h3>Q1.2</h3>
130
  <p>Consider the following test scaffolding code.</p>
131
  <pre id="q12code"></pre>
132
  <p>The real data source has not yet been integrated. During the test, <code>FixedDataSource</code> supplies predefined records to <code>ReportGenerator</code>.</p>
@@ -136,25 +137,25 @@
136
 
137
  <!-- ============ Q2 ============ -->
138
  <section class="pane" data-tab="q2">
139
- <h2>Q2 Combinatorial Testing</h2>
140
  <p>A web application supports the following parameters:</p>
141
  <pre>Browser: Chrome, Firefox
142
  Authentication: Password, SSO
143
  Region: AU, US</pre>
144
  <p>Exactly one option is correct for each question.</p>
145
 
146
- <h3>Q2.1 Selecting a Pairwise Covering Array</h3>
147
  <p>Which option is a smallest pairwise covering array?</p>
148
  <div id="q21opts"></div>
149
 
150
- <h3>Q2.2 Increasing the Interaction Strength</h3>
151
  <p>If the required interaction strength is increased from pairwise testing to three-way testing, how many tests are required to cover every combination of the three parameters?</p>
152
  <div id="q22opts"></div>
153
  </section>
154
 
155
  <!-- ============ Q3 ============ -->
156
  <section class="pane" data-tab="q3">
157
- <h2>Q3 Integration Testing</h2>
158
  <p>Consider a system with the following dependencies:</p>
159
  <pre>CheckoutController
160
  |
@@ -163,13 +164,13 @@ OrderService
163
  | |
164
  v v
165
  InventoryService PaymentGateway</pre>
166
- <p>Fill in the blanks.</p>
167
  <div id="q3block" style="line-height:2.2"></div>
168
  </section>
169
 
170
  <!-- ============ Q4 ============ -->
171
  <section class="pane" data-tab="q4">
172
- <h2>Q4 Metamorphic Oracle and Mutation Testing</h2>
173
  <p>Consider the following program.</p>
174
  <pre id="q4prog"></pre>
175
 
@@ -185,11 +186,11 @@ InventoryService PaymentGateway</pre>
185
  <tr><td>M4</td><td><code>fee -= 2</code> &rarr; <code>fee -= 1</code></td></tr>
186
  </table>
187
 
188
- <h3>Q4.1 Mutant Status</h3>
189
  <p>For each mutant, write <code>Killed</code> or <code>Survived</code> under the initial test suite.</p>
190
  <div id="q41block" style="line-height:2.2"></div>
191
 
192
- <h3>Q4.2 Metamorphic Test Oracle</h3>
193
  <p>For any <code>hours &gt;= 8</code> and positive integer <code>increase</code>, increasing the parking duration should not change the parking fee. The values of <code>weekend</code> and <code>member</code> must remain unchanged.</p>
194
  <p>Complete the metamorphic oracle. It may call <code>parking_fee</code> exactly twice and must not directly assert a particular fee value.</p>
195
  <div class="pg">
@@ -197,11 +198,11 @@ InventoryService PaymentGateway</pre>
197
  <textarea id="q42code"></textarea>
198
  </div>
199
 
200
- <h3>Q4.3 Mutation Score</h3>
201
  <p>Compute the mutation score of the initial test suite.</p>
202
  <div id="q43block" style="line-height:2.2"></div>
203
 
204
- <h3>Q4.4 Improving the Test Suite</h3>
205
  <p>Give one source input and its metamorphic follow-up that kill every mutant surviving the initial test suite.</p>
206
  <div id="q44block" style="line-height:2.2"></div>
207
  <p>Then write the corresponding direct regression test.</p>
@@ -210,6 +211,10 @@ InventoryService PaymentGateway</pre>
210
 
211
  <!-- ============ Q5 ============ -->
212
  <section class="pane" data-tab="q5" style="padding:0;overflow:hidden">
 
 
 
 
213
  <iframe src="coverage_fuzzing/index.html" title="Q5 Coverage-Guided Fuzzing"
214
  style="width:100%;height:1500px;border:0;display:block;border-radius:12px"></iframe>
215
  </section>
 
22
  h1 { font-size:22px; margin:0 0 4px; }
23
  h2 { font-size:18px; margin:34px 0 6px; padding-top:14px; border-top:1px solid var(--border); }
24
  h3 { font-size:14px; color:var(--accent); margin:18px 0 6px; }
25
+ .pts { font-size:12px; color:var(--muted); font-weight:500; }
26
  p { margin:8px 0; }
27
  code, .mono { font-family:"SF Mono",Menlo,Consolas,monospace; }
28
  pre { background:#181825; border:1px solid var(--border); border-radius:8px; padding:12px 14px; overflow:auto; font-size:13px; }
 
105
  </head>
106
  <body>
107
  <div class="wrap">
108
+ <h1>Assignment 3: Software Testing <span class="pts" style="font-size:13px">[25 pts total]</span></h1>
109
  <p class="muted">Answer all questions below — one tab per question. Your answers auto-save in this browser; export them as JSON at the bottom when done.</p>
110
 
111
  <div class="layout">
 
120
 
121
  <!-- ============ Q1 ============ -->
122
  <section class="pane active" data-tab="q1">
123
+ <h2>Q1 Test Scaffolding Concepts <span class="pts">[2 pts]</span></h2>
124
  <p class="muted">Multiple answers may apply unless otherwise stated.</p>
125
 
126
+ <h3>Q1.1 <span class="pts">[1 pt]</span></h3>
127
  <p>Which of the following may be used as test scaffolding?</p>
128
  <div id="q11opts"></div>
129
 
130
+ <h3>Q1.2 <span class="pts">[1 pt]</span></h3>
131
  <p>Consider the following test scaffolding code.</p>
132
  <pre id="q12code"></pre>
133
  <p>The real data source has not yet been integrated. During the test, <code>FixedDataSource</code> supplies predefined records to <code>ReportGenerator</code>.</p>
 
137
 
138
  <!-- ============ Q2 ============ -->
139
  <section class="pane" data-tab="q2">
140
+ <h2>Q2 Combinatorial Testing <span class="pts">[4 pts]</span></h2>
141
  <p>A web application supports the following parameters:</p>
142
  <pre>Browser: Chrome, Firefox
143
  Authentication: Password, SSO
144
  Region: AU, US</pre>
145
  <p>Exactly one option is correct for each question.</p>
146
 
147
+ <h3>Q2.1 Selecting a Pairwise Covering Array <span class="pts">[2 pts]</span></h3>
148
  <p>Which option is a smallest pairwise covering array?</p>
149
  <div id="q21opts"></div>
150
 
151
+ <h3>Q2.2 Increasing the Interaction Strength <span class="pts">[2 pts]</span></h3>
152
  <p>If the required interaction strength is increased from pairwise testing to three-way testing, how many tests are required to cover every combination of the three parameters?</p>
153
  <div id="q22opts"></div>
154
  </section>
155
 
156
  <!-- ============ Q3 ============ -->
157
  <section class="pane" data-tab="q3">
158
+ <h2>Q3 Integration Testing <span class="pts">[5 pts]</span></h2>
159
  <p>Consider a system with the following dependencies:</p>
160
  <pre>CheckoutController
161
  |
 
164
  | |
165
  v v
166
  InventoryService PaymentGateway</pre>
167
+ <p>Fill in the blanks. <span class="pts">[1 pt each, 5 blanks]</span></p>
168
  <div id="q3block" style="line-height:2.2"></div>
169
  </section>
170
 
171
  <!-- ============ Q4 ============ -->
172
  <section class="pane" data-tab="q4">
173
+ <h2>Q4 Metamorphic Oracle and Mutation Testing <span class="pts">[8 pts]</span></h2>
174
  <p>Consider the following program.</p>
175
  <pre id="q4prog"></pre>
176
 
 
186
  <tr><td>M4</td><td><code>fee -= 2</code> &rarr; <code>fee -= 1</code></td></tr>
187
  </table>
188
 
189
+ <h3>Q4.1 Mutant Status <span class="pts">[2 pts]</span></h3>
190
  <p>For each mutant, write <code>Killed</code> or <code>Survived</code> under the initial test suite.</p>
191
  <div id="q41block" style="line-height:2.2"></div>
192
 
193
+ <h3>Q4.2 Metamorphic Test Oracle <span class="pts">[2 pts]</span></h3>
194
  <p>For any <code>hours &gt;= 8</code> and positive integer <code>increase</code>, increasing the parking duration should not change the parking fee. The values of <code>weekend</code> and <code>member</code> must remain unchanged.</p>
195
  <p>Complete the metamorphic oracle. It may call <code>parking_fee</code> exactly twice and must not directly assert a particular fee value.</p>
196
  <div class="pg">
 
198
  <textarea id="q42code"></textarea>
199
  </div>
200
 
201
+ <h3>Q4.3 Mutation Score <span class="pts">[2 pts]</span></h3>
202
  <p>Compute the mutation score of the initial test suite.</p>
203
  <div id="q43block" style="line-height:2.2"></div>
204
 
205
+ <h3>Q4.4 Improving the Test Suite <span class="pts">[2 pts]</span></h3>
206
  <p>Give one source input and its metamorphic follow-up that kill every mutant surviving the initial test suite.</p>
207
  <div id="q44block" style="line-height:2.2"></div>
208
  <p>Then write the corresponding direct regression test.</p>
 
211
 
212
  <!-- ============ Q5 ============ -->
213
  <section class="pane" data-tab="q5" style="padding:0;overflow:hidden">
214
+ <div style="padding:24px 28px 0">
215
+ <h2 style="margin-top:0;padding-top:0;border-top:none">Q5 Coverage-Guided Fuzzing <span class="pts">[6 pts]</span></h2>
216
+ <p class="muted">2.5 pts for each of the two bugs found, plus 1 pt for reaching full edge coverage.</p>
217
+ </div>
218
  <iframe src="coverage_fuzzing/index.html" title="Q5 Coverage-Guided Fuzzing"
219
  style="width:100%;height:1500px;border:0;display:block;border-radius:12px"></iframe>
220
  </section>