Software testing is a set of activities used to evaluate software quality and reduce the risk of failure. It is not limited to clicking through an application after development. Testing can include reviewing requirements, checking designs, analysing code, executing the product and reporting what the evidence shows.
Why do teams test software?
Software can fail because requirements are unclear, code contains defects, data is unusual, services are unavailable or users follow a path that designers did not expect. Testing provides information about quality and risk before a change is released. It can find problems, check whether requirements are met and help a team decide what needs more attention.
Testing cannot prove that a complex system has no defects. A useful test reduces uncertainty for a defined scope. The result should be interpreted alongside the tests that were not run, the data used and the environments covered.
Test cases: inputs, actions and expected results
A test case describes a situation to check. A simple test case usually records the objective, preconditions, input data, steps and expected result. The tester then records the actual result and whether it passed or failed.
Illustrative example: A student portal has a sign-in form. A test case might start with an active test account, enter a valid username and password, select Sign in and expect the dashboard to open. A second case might enter an incorrect password and expect a clear error without exposing account details. These examples explain the structure of a test; they are not results from a real test of a production service.
Static testing and dynamic testing
Static testing evaluates a work product without running the software. Examples include reviewing a requirement, inspecting a design, checking a spreadsheet specification or using static-analysis tools on source code. It can reveal unclear instructions and defects early.
Dynamic testing involves executing software and observing its behaviour. It may include manual tests, automated checks or exploratory testing. Both approaches are useful: a program can behave incorrectly because its code has a defect, but a requirement can also be incomplete before any code exists.
Common test levels
- Component or unit testing: checks an individual function, class or component in isolation, often with controlled dependencies.
- Integration testing: checks whether connected components or systems work correctly together and exchange information as expected.
- System testing: evaluates the complete integrated system against its specified requirements.
- Acceptance testing: evaluates whether the system is ready for its intended users, business purpose or acceptance conditions.
These levels answer different questions. A unit test may show that a calculation works in isolation, while an integration test may reveal that the application sends the wrong value to a payment service. A system test checks the complete journey, and acceptance testing focuses on whether the solution is suitable for the agreed use.
Test types and test objectives
Functional testing asks whether a feature produces the required behaviour. Non-functional testing examines qualities such as performance, usability, reliability, security and compatibility. Regression testing checks whether a change has unintentionally affected existing behaviour. Confirmation testing checks whether a previously reported defect has been corrected.
Choose tests according to risk. A payment workflow deserves careful testing of amounts, currencies, failed transactions and duplicate submissions. A content page may need checks for links, layout, accessibility and readability. Not every product needs the same test plan.
Defects, failures and useful reports
A defect is a flaw in a work product. A failure is an observed event in which a system does not perform as expected. A useful defect report includes a short title, environment, steps to reproduce, expected behaviour, actual behaviour, evidence and severity or impact. Avoid reporting only “it does not work.”
Severity describes the impact of a problem; priority describes how urgently a team chooses to address it. A defect may be highly severe but difficult to reproduce, or low in severity but easy to fix. Teams should use their agreed definitions rather than assuming every organization labels these issues identically.
Practice task: write three test cases
Choose a familiar non-production example, such as a library search page. Write one test for a normal search, one for a search with no matching results and one for an empty search box. For each case, record preconditions, input, steps and expected result. Then consider one edge case, such as a very long search phrase or punctuation.
Do not test against someone else's account or a live payment service without permission. Practise with a classroom project, local demo or system you are authorised to use.
Frequently asked questions
Is software testing the same as debugging?
No. Testing evaluates software and provides evidence of failures or quality. Debugging investigates the cause of a defect and changes the implementation to correct it. They often work together but are different activities.
Does passing every test mean software is defect-free?
No. Tests cover selected conditions. Passing results show that those checks met their expected outcomes in the tested environment; they do not prove that every possible input or situation is safe.
Should testing start only after coding?
No. Teams can review requirements, user stories, designs and risks before code exists. Early reviews can reveal misunderstandings before they become expensive changes.
What is regression testing?
Regression testing checks whether a change has caused unintended problems in previously working areas. Teams select regression tests based on the parts of the product affected and the risk of side effects.
Key takeaway
Learn software testing basics, including test cases, expected results, static and dynamic testing, test levels, defects and beginner practice. Use the practice task to check your understanding, then consult the official references for more detail.