Software Coding and Testing
Software Coding and Testing
Q1. What is Software Testing? What is the role of a Software Tester? Compare: Black Box vs White
Box.
Software Testing:
Software testing is the process of evaluating a software application to ensure it meets the specified
requirements and works as expected. It identifies bugs, errors, or defects and ensures the product is
|-----------------------|------------------------------------------|------------------------------------------|
| Definition | Tests functionality without internal knowledge. | Tests internal code structure and
logic. |
| Focus | What the software does (output). | How the software works
(implementation). |
|
| Techniques | Equivalence Partitioning, Boundary Value Analysis. | Statement, Path, and
Branch Coverage. |
Q2. What is Software Testing? Explain Black-box and White-box Testing in detail with examples.
Black-Box Testing:
- Focuses on testing the software's functionality without knowing its internal code.
- Example: Testing if entering correct credentials allows login while incorrect credentials show an
error message.
White-Box Testing:
- Example: Checking whether all if-else conditions in a payment processing system are tested
correctly.
|-----------------------|------------------------------------------|-----------------------------------------|
| Definition | Ensures the product is built correctly (meets design specs). | Ensures the
testing phase). |
| Example | Checking if design documents align with requirements. | Testing if the login
1. Code Review:
- A systematic review of source code by developers to find bugs or improve code quality.
2. Code Walkthrough:
- A semi-formal process where the author explains the code to peers in a meeting.
3. Code Inspection:
Coding Standards:
- A set of rules for writing code, ensuring consistency, readability, and maintainability.
- Examples:
Coding Guidelines:
- Examples:
Coding standards are more formal and enforceable, whereas coding guidelines are flexible and
advisory.