Software Testing Basics
Testing is how you build confidence that a system works. This guide covers the essentials — from test types and writing test cases to managing defects and proving coverage.
What you will learn
- Why testing matters and what it achieves
- The main types of testing and when to use them
- How to write clear, useful test cases
- Defect management and severity levels
- Traceability — linking requirements to test evidence
Why testing matters
Testing is how you verify that a system does what it is supposed to do — and does not do things it should not. Without testing, you are relying on luck. With it, you have evidence.
Good testing is not about finding every possible bug. It is about building enough confidence that the system is fit for purpose and that the risks of going live are understood and acceptable. The goal is to give decision-makers the information they need to make an informed go-live decision.
Types of testing
Unit testing checks individual components of a system in isolation — usually done by developers. Integration testing checks that different parts of a system work together correctly. This is where many bugs surface, because components that work individually can fail when combined.
System testing checks the complete system against the requirements. User acceptance testing (UAT) is where business users test the system in a realistic environment using realistic scenarios. UAT is the final check before go-live — it confirms that the system meets business needs, not just technical specifications.
Regression testing checks that changes to one part of the system have not broken something else. It is often overlooked but is critical when systems are updated or patched.
Writing test cases
A test case is a documented scenario that describes what to test, how to test it, and what the expected result should be. A good test case has: a clear description of what is being tested, the steps to follow, the expected result, the actual result, and a pass or fail status.
Test cases should be written before testing starts, ideally by someone who understands the requirements. Writing them forces you to think through the scenarios carefully and often reveals gaps in the requirements.
Defect management
When a test fails, the issue is logged as a defect. A defect record should capture: what was being tested, what happened, what was expected, the steps to reproduce the issue, and the severity.
Severity describes how serious the defect is. A critical defect stops a core business process and must be fixed before go-live. A high defect significantly impacts users but may have a workaround. Medium and low defects are less urgent but should still be tracked and resolved.
Defects should be reviewed regularly during testing. The test manager and project team need to understand the defect profile — how many are open, what severity, and whether the trend is improving — to make informed decisions about readiness to go live.
Traceability: linking requirements to tests
A traceability matrix maps requirements to test cases. For each requirement, it shows which test cases cover it — and whether those tests have passed.
Traceability matters because it gives you confidence that everything that was required has been tested. Without it, you might go live with untested requirements and not know it. A simple spreadsheet with requirements in one column and test case references in another is enough for most projects.
Where to go next
Explore how tools like Microsoft 365 and Power Platform can help you automate and improve the work you have been learning about.
Getting Started with Microsoft 365 →Browse the IT Glossary →