Show understanding of the need for a test strategy and test plan and their likely contents

12.3 Program Testing & Maintenance

Why a Test Strategy Matters 🧪

Think of building a LEGO set. If you only follow the picture and never check if the pieces fit, you’ll end up with a wobbly tower. A test strategy is the blueprint that tells you what to test, how to test it, and when to test it. It keeps the testing process organised, saves time, and ensures you catch bugs before they become big problems.

  • Defines the overall testing scope and objectives 🎯
  • Sets the approach (manual, automated, or a mix) 🛠️
  • Identifies resources needed – people, tools, and environments 📋
  • Outlines risks and how to mitigate them ⚠️
  • Provides a timeline for testing activities ???

What is a Test Plan?

A test plan is the detailed instruction sheet that turns the strategy into action. It lists every test case, who will run it, what the expected outcome is, and when it should be executed. Think of it as the recipe that tells you the exact steps to bake a cake, not just the idea of “make a cake.”

Contents of a Typical Test Plan

  1. Test Plan ID – a unique reference number
  2. Test Items – what modules or features will be tested
  3. Features to be Tested – specific functionalities (e.g., login, data import)
  4. Features Not Tested – scope exclusions
  5. Test Approach – manual, automated, or hybrid
  6. Entry & Exit Criteria – conditions that must be met before starting or finishing testing
  7. Test Environment – hardware, OS, network, and tools required
  8. Responsibilities – who writes, reviews, and executes tests
  9. Schedule – dates for test phases and milestones
  10. Risks & Mitigations – potential obstacles and how to handle them
  11. Test Deliverables – test cases, test scripts, test reports, defect logs

Example Test Case Table

Test ID Description Pre‑Conditions Test Steps Expected Result Actual Result Status
TC001 Verify login with valid credentials User registered in database 1. Enter username
2. Enter password
3. Click login
User is redirected to dashboard User is redirected to dashboard Pass
TC002 Verify login with invalid password User registered in database 1. Enter username
2. Enter wrong password
3. Click login
Error message “Invalid credentials” displayed Error message “Invalid credentials” displayed Pass

Exam Tip Box 📋

• When asked to describe a test strategy, start with purpose, scope, approach, resources, and timeline. • For a test plan, list the test items, entry/exit criteria, responsibilities, and risks. • Use the table format for test cases – it shows you can organise information clearly. • Remember to mention maintenance activities: regression testing after fixes, and monitoring for new bugs.

Maintenance & Regression Testing 🔄

After a bug is fixed, you run regression tests to ensure the fix didn’t break other parts of the program. Think of it like checking that a repaired bridge still supports traffic.

Key point for exams: Explain why regression testing is essential and how it fits into the overall maintenance cycle.

Revision

Log in to practice.

2 views 0 suggestions