After completing the tests, students should provide a one-line summary for each test case and Kizspy. mey the test code into a Word document for evaluation.
Example:
ID: TC1; Test for ; Input parameter:; Expected result:
Test code:
@Test
public void testNegativeX() {
assertThrows (IllegalArgumentException.class, () -> { numberProcessor.processNumbers(-1, 5, true);
});
}
Question 3 (2 points):
You are given the following use case for an online shopping system. The system allows customers to add items to their shopping cart, apply discount codes, and proceed to checkout.Your task is to create functional black-box test cases based on this use case using use-case-based testing techniques.
Use Case: Online Shopping System
Use Case Name: Place an Order
Primary Actor: Customer
Preconditions:
Zoom FUD
+ 100%
Close