Unit 5: Software Coding and Testing
Software Engineering (4353202)
5.1: Code Review & Documentation
Code Review Techniques
- Code Walkthrough: An informal review where the author leads the discussion.
- Code Inspection: A formal and systematic review by trained inspectors.
Software Documentation
Internal Documentation: Comments, code structure, design rationale.
External Documentation: User manuals, installation guides, API documentation.
5.2: White Box Testing
A testing technique that takes into account the internal mechanism of a system or component.
- Statement Coverage
- Branch Coverage
- Path Coverage
5.3: Black Box Testing
A testing technique that focuses on the functionality of the software without considering the internal code structure.
- Equivalence Partitioning
- Boundary Value Analysis
5.4: Test Case Design
A test case is a set of conditions or variables under which a tester will determine whether a system under test satisfies requirements or works correctly.
Example Test Case for ATM:
| Test Case ID | Test Scenario | Expected Result |
|---|---|---|
| TC001 | Valid PIN Entry | Access granted to main menu |

