Key takeaways
Treat a passing test run as evidence that you can ship, never as proof that the software is bug-free.
Testing verifies that you built the product right and validates that you built the right product, and its job is to catch the failures that matter before customers do.
Give every practical user flow an end-to-end test, starting with your critical flows.
Unit and integration tests catch mistakes close to the code, but only end-to-end tests run a whole workflow the way a customer does, and with parallel runs and maintained tests an extra one costs little.
Test from the first requirement through every feature, change, bug fix and refactor.
The longer a bug survives, the harder it is to find and the more it costs to fix.
Have a person check each new feature first, then automate a test for it so it keeps working.
People judge usability and spot what looks wrong, and automation re-checks hundreds of workflows on every deploy, which no team can do by hand.
Update tests in the same pull request as the change that breaks them, and fix flaky tests instead of retrying them.
A suite only helps while your team trusts its results, so capture logs, video and traces on every run.
Software testing is the practice of checking that an application works the way it should, and does what its users need, before they find out it doesn't. The basics come down to the main types of tests, when to run them, the principles behind them and how to keep a suite trustworthy as the product changes.
Most teams know this and still ship untested code when a deadline hits. In Tricentis's 2026 Quality Transformation Report, 60% of organizations say they deploy untested code to production, most often because of pressure to ship faster (32%) or because there's too much AI-generated code to test fully (30%).
What is software testing?
Software testing verifies that software works as intended and validates that it does what users need. In practice, that means pages load, buttons work, forms submit, payments go through, and yesterday's features still work after today's change.
Two words do most of the work here:
- Verification: Are we building the product right? (Does it match the spec?)
- Validation: Are we building the right product? (Does it solve the user's problem?)
No test suite proves software is bug-free. Testing gives you enough evidence to ship with confidence, and it catches the failures that matter before customers do.
What are the main types of software testing?
Dozens of testing types sort into four groupings, and most teams use a mix of all four.
| Grouping | Types | What it tells you |
|---|---|---|
| By approach | Manual, automated | Who or what runs the test |
| By level | Unit, integration, end-to-end (system), acceptance | How much of the system the test covers |
| By objective | Functional, regression, smoke, visual, accessibility, performance, security, usability | Which risk the test checks for |
| By visibility | Black-box, white-box, gray-box | How much of the code the person testing can see |
By approach: a person or a script runs the test
Manual testing has a person use the app and judge the result. Automated testing runs the same checks as code, on every change. A person checks a new feature first, for usability and anything a script can't judge, and then the team builds an automated test for it so it keeps working on every release.
By level: from one function to the whole product
- Unit tests check a single function or component in isolation. They're fast and cheap, and they catch mistakes close to the code change, but they can't tell you whether a user can finish checkout.
- Integration tests check how components and services work together, such as data flow, APIs and interfaces.
- End-to-end (E2E) tests run complete user workflows across the UI, services and environments, the way a customer would. They give the clearest signal that a release is safe.
- Acceptance tests confirm the software meets business requirements. Many teams write their acceptance criteria as end-to-end tests.
The classic test pyramid said to keep end-to-end tests few, because they were slow, flaky and expensive to maintain. With tests running in parallel and AI agents maintaining them, an extra end-to-end test costs little, so give every practical user flow one, starting with your critical flows.
By objective: what each test checks
- Functional testing checks that features behave correctly, so workflows complete and rules are enforced.
- Regression testing checks that new changes didn't break existing behavior. It works best built on end-to-end workflows.
- Smoke testing is a quick pass over the most critical paths to decide whether a build is stable enough for deeper testing.
- Visual testing compares screenshots to catch layout and styling changes that functional checks miss.
- Accessibility testing checks that people using assistive technology can use the product.
- Performance testing measures speed, throughput and stability under load.
- Security testing looks for vulnerabilities and protects user data.
- Usability testing checks whether real people find the product easy to use.
By visibility: black-box, white-box and gray-box testing
Black-box testing judges behavior from the outside (inputs and outputs) with no knowledge of the code. White-box testing uses knowledge of the code's structure and logic, usually at the unit level. Gray-box testing sits in between, using some knowledge of internals to design sharper functional or integration tests.
What are the 7 principles of software testing?
The ISTQB, which runs the most widely used software testing certification, lists seven principles of software testing. Each one explains a mistake teams keep making.
- Testing shows the presence of defects, not their absence. A green run means you didn't find bugs, and there may still be some.
- Exhaustive testing is impossible. The paths through an app have no end, so test every practical user flow, starting with the riskiest, rather than every input and path.
- Early testing saves time and money. A bug caught in a design review costs less than one caught in production.
- Defects cluster together. A small number of modules usually holds most of the bugs, so test those modules harder.
- Tests wear out (the pesticide paradox). Running the same tests forever stops finding new bugs, so update and extend them.
- Testing is context dependent. A banking app and a game need different testing.
- The absence-of-errors fallacy. Bug-free software that doesn't meet user needs still fails.
What are the steps in the software testing life cycle?
The software testing life cycle (STLC) is the order of work most teams follow. Sources number the steps differently, often six or seven, but the shape is the same:
- Requirement analysis: Work out what needs testing and what "working" means.
- Test planning: Decide scope, approach, tools, owners and schedule.
- Test case design: Write the test cases and the data they need.
- Environment setup: Prepare clean, realistic environments to run them in.
- Test execution: Run the tests, log the results and file bugs.
- Test closure: Review coverage and results, and feed what you learned into the next cycle.
Teams that ship daily repeat these steps inside every pull request and deploy, rather than once per release.
When should you test?
Test from the first requirement through every release. The longer a bug survives, the harder it is to find and the more it costs to fix, so continuous testing builds and runs tests at each of these points:
- Before development starts: Test requirements and assumptions, since a bug in the design is still a bug.
- When you add a feature: Have a person check it first, then add an automated test to your regression suite so it keeps working.
- When you change a feature: Confirm the change and check that nothing nearby broke.
- When you fix a bug: Confirm the fix and add a test so the bug can't quietly return.
- Before you refactor: Make sure tests cover the critical workflows the code touches, so a refactor can't silently break them.
Manual vs. automated testing: which do you need?
Most teams need both, used in order. A person checks each new feature first, for usability and anything a script can't judge, and then the team builds an automated test for it so it keeps working on every release.
In a photo-editing app, the person testing it is the one who notices that the "enhance" filter makes portraits look washed out. Once the filter looks right, an automated test checks on every deploy that it still applies without errors, alongside hundreds of other workflows that no person could re-check each time.
| Manual testing | Automated testing | |
|---|---|---|
| Best for | New features, exploratory testing, usability and visual review | Regression, critical workflows and checks that must pass every release |
| Speed | Limited by people's time | As fast as the longest test, when tests run in parallel |
| Repeat runs | Each extra run needs more people's time | The same tests re-run across browsers, devices and environments at no extra labor |
| Cost | Labor on every run | More up front, less over time |
| Maintenance | People adapt to UI changes as they go | Tests need updating as the app changes |
| Judgment | High | Narrow, through LLM-as-judge assertions for output that varies |
Automation can take on some judgment too. When a correct result can be worded many ways, like a chatbot's reply or AI-generated copy, an exact-match assertion rejects valid output. An LLM-as-judge assertion has a model decide whether the output meets a stated requirement, while the rest of the test still asserts exact state. QA Wolf's agents can add these semantic assertions beside standard Playwright assertions.
Automated tests are written as code, usually in an open-source framework such as Playwright, Selenium or Cypress, and they run in a CI/CD pipeline. Playwright is the strongest choice for a new suite, and teams on Cypress do best writing new tests in Playwright and migrating their critical flows first.
Automated tests don't maintain themselves. When the UI changes, selectors break, and when business logic changes, assertions go stale, so a team that falls behind ends up with a suite nobody trusts. AI agents can now take on that upkeep. Many self-healing tools only patch broken selectors, which cause about 28% of test failures by QA Wolf's count. An agent that diagnoses each failure first, from DOM diffs, network traces, console errors and test data, can tell a real bug from a test the product change broke, and fix the test whether it needs a longer wait, a missing step or a new selector.
How do you know your tests are working?
Track a few metrics that show whether your team can trust the suite and whether it keeps up with the product:
- Coverage of user flows: The share of your practical user flows that have a passing end-to-end test.
- Flaky test rate: How often tests pass and fail with no code change.
- Skipped tests: Each skipped test is coverage you think you have but don't.
- Time to triage failures: How long it takes to tell a real bug from noise.
- Time to cover new features: How quickly new features get tests.
What are the most common software testing challenges?
Some testing problems are there before the first test is written, in the environment and in the app itself. Most show up later, as the product changes around the tests.
| Challenge | Fix |
|---|---|
| Nobody owns testing. Developers assume QA has it, and QA, if it exists, is stretched thin. | Name an owner for each kind of testing. If your team doesn't have time to write and maintain automated tests, hand that work to QA Wolf's AI agents rather than let coverage shrink. |
| The test environment isn't ready. Staging is down, half-deployed or out of step with production, and its database is full of leftovers, so tests fail for reasons that have nothing to do with the change. | Make the environment dependable before you grow the suite. Deploy it the same way as production, reset it to a known state before each run, and give tests an environment of their own, such as a preview environment for each pull request, so other people's work doesn't break them. |
| The app isn't built to be tested. Elements have no test IDs or accessible names, so tests lean on CSS classes and page structure that change with every redesign. It's worse on mobile, where many elements show up in the view hierarchy, the element tree Appium reads, with no identifier at all. | Add stable hooks as you build: a test ID (such as data-testid) or an accessible name (an ARIA label) on every element a test touches, accessibility identifiers on iOS, and resource IDs or content descriptions on Android. Accessible names and Android content descriptions are also what screen readers announce. |
| The suite is fragile and falling behind. Fast releases break brittle tests, failures get waved off, and real bugs slip through. | Update tests in the same pull request as the change, use durable selectors, and delete tests that no longer earn their keep, since an unmaintained suite decays fast. |
| Test data is unstable. Shared or polluted data makes tests fail for the wrong reasons. | Give each test its own deterministic data, and isolate each test so tests can run at the same time without colliding. |
| Failures are hard to read. Nobody can tell a bug from a bad environment. | Capture logs, video and traces on every run, and track failure patterns so flaky tests get fixed instead of retried. |
| Coverage stops at the happy path. Edge cases and error states go untested. | Test the edge cases, error states and third-party failures real users hit, and find them with a test coverage plan. |
How does QA Wolf apply the basics of software testing?
QA Wolf's AI agents handle these basics for web, mobile and desktop apps. They map your app, write the tests, run them, investigate every failure and keep the tests current, and when an agent needs an answer, such as whether a change was intended, it asks your team. From QA Wolf's docs and engineering posts:
- The agents map your app before they write a test. An agent explores your application and maps its end-to-end workflows by feature or product area, outlines each flow to test in Arrange-Act-Assert steps, and you choose which flows get tests.
- The tests are code your team owns. The agents write standard Playwright tests for web apps and Appium tests for mobile and Windows desktop apps, the open-source frameworks your engineers already know. Your team can read, change and version every test like any other code, so the suite isn't locked into QA Wolf. To add a test, describe the flow in plain language and the agent writes it.
- Every test runs at once, on every pull request. Each test gets its own container, with its own browser, iOS or Android device or desktop VM, so the suite finishes in the time of its slowest test. PR testing runs your flows against each pull request's preview deploy and reports the result on the pull request.
- Every failure gets investigated. QA Wolf retries a failed test to rule out a flake, then its AI sorts each failure into a product bug, an out-of-date test or a flake. Real bugs reach you as bug reports with a recording, logs and steps.
- The agents keep the tests current. When a product change breaks a test, the agents fix it, with unlimited repairs, so the suite keeps passing as the product changes.
QA Wolf's agents do this work better than general-purpose coding agents. On 1,567 evals across web, iOS and Android apps, QA Wolf passed 93%, against 78% for Claude Code and 74% for Codex.
Salesloft is a perfect example. Each of its 25 squads had a manual tester, running a full regression suite on every pull request wasn't practical, and the no-code tools it tried were hard to maintain and full of flaky tests. Now 300+ tests run in parallel on every pull request, and QA Wolf takes care of "everything from the test writing to the maintenance," as Salesloft's Staff QA Program Manager puts it. The 800 critical workflows that used to pull all 25 testers off their teams for every major upgrade now finish in under 45 minutes.
Start now and ask the agent to map your app and write tests for your most critical flows, or talk to sales.
The bottom line
The basics of software testing come down to four habits. Know the main types of tests, give every practical user flow an end-to-end test (critical flows first), test with every change, and keep the suite trustworthy as the product changes. Most teams fall behind on the last two, because they repeat every sprint.
Frequently asked questions
What is software testing in simple words?
Software testing is checking that an app does what it should before people rely on it. A person, or an automated test written as code, uses the app the way a user would and compares what happens with what should happen, so bugs get found and fixed before release.
Why is software testing important?
Bugs that reach users cost revenue, trust and engineering time, and the longer a bug survives, the more it costs to fix. Testing catches the failures that matter before release, and an automated suite lets a team change code quickly without breaking what already works.
What are the basics of software testing?
The basics are what testing is (verification and validation), the main types (manual and automated; unit, integration, end-to-end and acceptance; functional, regression and non-functional), the seven testing principles, the testing life cycle, and how to keep tests trustworthy. Most teams start by automating end-to-end tests for their most critical user flows.
What are the main types of software testing?
Testing types sort by level (unit, integration, end-to-end and acceptance tests), by objective (functional, regression, smoke, performance, security and usability testing) and by approach (manual or automated). End-to-end tests give the clearest signal that a release is safe, while unit and integration tests catch mistakes closer to the code.
What are the 7 principles of software testing?
The ISTQB's seven principles are: testing shows the presence of defects, not their absence; exhaustive testing is impossible; early testing saves time and money; defects cluster together; tests wear out (the pesticide paradox); testing is context dependent; and the absence-of-errors fallacy (bug-free software can still fail users).
What are the 7 steps of software testing?
Most descriptions of the software testing life cycle cover requirement analysis, test planning, test case design, environment setup, test execution and test closure. Some add a separate defect-reporting or retesting step, which makes seven. Teams that ship daily repeat these steps with every pull request rather than once per release.
What is the difference between manual and automated testing?
Manual testing has a person use the app and judge the result, which suits new features, usability and visual review. Automated testing runs the same checks as code on every change, which suits regression and critical workflows. A person checks each new feature first, and then an automated test keeps it working, the kind of test QA Wolf's AI agents write and maintain in Playwright and Appium.