Chapter 9 Testing Module
Chapter 9 Testing Module
1. Unit Testing
isolation.
🔹 Scope:
🔹 Examples:
updated correctly.
🔹 Tools:
72
Backend: PHPUnit (PHP), JUnit (Java), PyTest (Python)
2. Integration Testing
combined.
🔹 Scope:
🔹 Examples:
Ensure the "Place Order" feature retrieves cart data, stores the order in the
update.
🔹 Tools:
3. System Testing
specified requirements.
73
🔹 Scope:
🔹 Examples:
A user logs in, browses products, adds to cart, places an order, receives a
Admin updates product info and checks whether changes reflect on the user
interface.
🔹 Tools:
🔹 Scope:
🔹 Examples:
o Ease of navigation
74
🔹 Method:
🔹 Participants:
5. Security Testing
🔹 Scope:
etc.
🔹 Examples:
🔹 Tools:
OWASP ZAP
75
Burp Suite
6. Performance Testing
🔹 Scope:
Ensuring the system can handle traffic spikes (e.g., Black Friday sales).
🔹 Examples:
🔹 Types:
Soak Testing: Running the system for extended periods to detect memory
🔹 Tools:
Apache JMeter
Locust
76
Google Lighthouse (for frontend performance)
77
✅ Conclusion
Each testing phase plays a critical role in the website development lifecycle:
- Login validation
Test individual
- Cart add/remove Jest, Mocha, PyTest,
Unit Testing components in
functionality JUnit
isolation.
- Payment calculation
78
integration
requirements. updates
79