E-commerce Purchase Module -- Sample Workflow and Test Case....
E-commerce purchase: Normal Work Flow
1. Customer Places one or more items in shopping cart
2. Customer selects checkout
a.Exception: Customer attempts to checkout with empty shopping cart; system gives error message
3.System gathers address, payment, and shipping information from customer
a.Exception: customer provides invalid address, payment or shipping information; system gives error messages as appropriate
4.System displays all information for user confirmation
5.User confirms order to system for delivery
a.Exception: customer abandons transaction before or during checkout, system logs customer out after 10 minutes of inactivity
Logical Test case (typical) for E-commerce purchase:
|
No |
Test step |
Expected Result |
|
1 |
Place 1 item in cart |
Item in cart |
|
2 |
Click checkout |
Checkout screen |
|
3. |
input valid address, valid payment using card (American express etc.,) valid shipping information |
Each screen displays correctly and valid inputs are accepted |
|
4 |
Verify order information |
Shown as entered |
|
5 |
Confirm order |
Order in system |
|
6 |
Repeat steps 1- 5 but place 2 items in cart |
As shown in 1 to 5 |
|
7 |
Repeat steps 1-5 but place maximum number of items in cart |
As shown in 1-5 |
Logical Test case (exception) for e-commerce purchase:
|
No |
Test step |
Expected result |
|
1 |
Do not place any items in cart |
Cart empty |
|
2 |
Click checkout |
Error message |
|
3 |
Place item in cart, click checkout, enter invalid address, then invalid payment, them invalid shopping information |
Error message, can’t proceed to next screen until resolved |
|
4 |
Verify order information |
Shown as entered |
|
5 |
Confirm order |
Order in system |
|
6 |
Repeat steps 1-3 but stop activity and abandon transaction after placing item in cart |
User logged out exactly 10 minutes after last activity |
|
7 |
Repeat steps 1-3, but stop activity and abandon transaction on each screen |
As shown in 6 |
|
8 |
Repeat steps 1-4 do not confirm order |
As shown in 6 |

