Answer all questions below — one tab per question. Your answers auto-save in this browser; export them as JSON at the bottom when done.
Multiple answers may apply unless otherwise stated.
Which of the following may be used as test scaffolding?
Consider the following test scaffolding code.
The real data source has not yet been integrated. During the test, FixedDataSource supplies predefined records to ReportGenerator.
How should FixedDataSource be classified?
A web application supports the following parameters:
Browser: Chrome, Firefox Authentication: Password, SSO Region: AU, US
Exactly one option is correct for each question.
Which option is a smallest pairwise covering array?
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?
Consider a system with the following dependencies:
CheckoutController
|
v
OrderService
| |
v v
InventoryService PaymentGateway
Fill in the blanks. [1 pt each, 5 blanks]
Consider the following program.
Initial test suite:
Assume that none of the following mutants is equivalent to the original program.
| Mutant | Change |
|---|---|
| M1 | hours >= 8 → hours > 8 |
| M2 | fee = 14 → fee = 15 |
| M3 | if weekend → if not weekend |
| M4 | fee -= 2 → fee -= 1 |
For each mutant, write Killed or Survived under the initial test suite.
For any hours >= 8 and positive integer increase, increasing the parking duration should not change the parking fee. The values of weekend and member must remain unchanged.
Complete the metamorphic oracle. It may call parking_fee exactly twice and must not directly assert a particular fee value.
Compute the mutation score of the initial test suite.
Give one source input and its metamorphic follow-up that kill every mutant surviving the initial test suite.
Then write the corresponding direct regression test.