The three software testing types you will hear about most are unit testing (developers check small pieces of code on their own), integration testing (checking that those pieces, and outside systems such as payment gateways, work together) and user acceptance testing, or UAT (your own people check the finished software against real business tasks before it goes live). Each catches a different kind of problem, so a healthy project uses all three.
As a business owner you will not write tests, but you will be asked to run UAT and sign it off, and you should know what testing your vendor does before that. This guide explains each type, adds the other tests worth asking about, and gives you a simple UAT plan you can use.
The three main testing types at a glance
Microsoft's implementation guide for Dynamics 365 lists the common types simply: unit testing checks individual components, integration testing checks how components and systems work together, system testing checks the whole solution, user acceptance testing checks it from the user's point of view, and regression testing checks it again after changes. Most projects, large or small, follow the same idea.
| Unit testing | Integration testing | User acceptance testing (UAT) | |
|---|---|---|---|
| What it checks | One small piece of code, such as a function that calculates tax | How parts connect: database, APIs, other modules, outside services | Whether the software supports your real business processes |
| Who does it | Developers | Developers or testers | Your staff and managers, the people who will use it |
| When | All the time, while code is written | As features are joined together | Near the end of a release, before go-live |
| How | Mostly automated, runs in seconds | Automated and manual | Mostly manual, following written scenarios |
| Typical catch | Wrong rounding, a broken rule for a discount slab | Payment status not reaching the order, data saved in the wrong format | A step that does not match how your team actually works |
Unit testing: checking the smallest pieces
Martin Fowler, a well-known writer on software design, describes unit tests as low-level tests that focus on a small part of the system, are usually written by the programmers themselves, and are expected to run much faster than other kinds of tests. Because they are fast, developers can run hundreds of them every time they change something.
A unit might be a single function, such as one that works out the price after a quantity discount, or a slightly larger piece of logic. A good unit test feeds it known inputs and checks the output: 10 units at this rate should give exactly this total.
What unit tests cannot tell you is whether the pieces work together, or whether the software does what your business actually needs. A calculation can be perfectly tested and still be the wrong calculation if the requirement was misunderstood.
Integration testing: checking the joins
Fowler's article on the test pyramid describes integration tests as tests of how your application works with the parts that live outside it, such as databases, file systems and other services. In a typical Indian business system, these joins are where many real problems appear:
- A payment gateway confirms a payment, but the order in your system is not updated.
- An invoice is pushed to the accounting software with a date in the wrong format and is rejected.
- A new lead from the website form reaches the CRM without the source of the lead.
- An app works on the developer's test server but fails against the live database.
Integration tests often use the outside service's test or sandbox mode, so no real money or customer messages are involved. If your project connects several systems, our guide to API integration explains the error codes and failure cases worth testing.
Many teams also run end-to-end tests, which drive the whole system the way a user would, for example placing an order from start to finish. Fowler notes these give the most confidence but are slow and costly to maintain, so teams usually keep a small number covering the most important journeys.
User acceptance testing: your team checks the real work
UAT is where you come in. Your staff use the software to do realistic tasks, in a test environment with realistic (not live customer) data, and confirm it supports the way the business works. Microsoft's guide describes the final test cycle as the one that decides whether the solution is ready to go live, with business stakeholders and users signing it off. It also makes an important point: sign-off does not mean the software is perfect or bug-free, only that it is good enough to run the business safely, with minor issues fixed later.
A simple UAT plan in seven steps:
- List your key processes. For example: create a quotation, convert it to an order, raise the invoice, record payment, check the daily report.
- Write each as a scenario with the expected result, such as "an order for 12 cartons applies the 10-plus carton rate".
- Include awkward cases: cancellations, partial payments, returns, a customer with no GSTIN, a user without permission.
- Pick testers who do the job daily, not only managers. The person who raises 50 invoices a day will spot problems others miss.
- Record every issue in one shared list, with steps to repeat it and a screenshot.
- Agree priorities: which issues block go-live and which can wait for a later release.
- Retest fixes, then sign off in writing, listing any known issues that are accepted for later.
Writing the processes down at the start of a project, in a one-page project brief, makes UAT far easier because the scenarios already exist.
Other testing types worth asking about
- Regression testing: running existing tests again after a change, to make sure a fix or new feature has not broken something that used to work. Automated tests make this cheap.
- Performance testing: checking how the system behaves with many users or large volumes, such as month-end billing or a sale. The UK government's service manual describes it as checking how much traffic a service can handle.
- Security testing: looking for weaknesses before attackers do, from simple checks on logins and permissions to formal penetration tests. See our cybersecurity basics for the business side.
- Accessibility testing: checking that people with disabilities can use the software, for example with a screen reader or keyboard only.
The same service manual recommends automating as much testing as possible and running it every time the code changes, so defects are found more quickly.
How much testing is enough?
The test pyramid, an idea Fowler credits to Mike Cohn's book Succeeding with Agile, is a good rule of thumb: write lots of small, fast unit tests, fewer integration tests, and only a handful of slow end-to-end tests. Fowler warns against the upside-down version, sometimes called the ice-cream cone, where most checking is done slowly by hand through the screens.
For a business owner, enough testing usually means:
- Business rules that involve money, tax or stock have automated tests.
- Every outside connection has been tested in sandbox mode, including what happens when it fails.
- Your team has run UAT against written scenarios and signed off.
- There is a plan to retest after every update, which matters long after launch; see app maintenance after launch.
UC Tech builds custom software and mobile apps with releases on a test link that you can check as the work progresses. If you want a second opinion on a testing plan, get in touch.
Frequently asked questions
What is the difference between unit testing and integration testing?
Unit testing checks one small piece of code on its own. Integration testing checks that pieces work together and with outside systems such as databases, payment gateways or accounting software.
Who should do user acceptance testing?
The people who will use the software every day, supported by a manager who can make decisions on priorities and sign-off. The vendor helps with the test environment and fixes, but should not run UAT on your behalf.
Is UAT the same as beta testing?
Not quite. UAT is your own team checking the software against your business processes before go-live. A beta usually means releasing a product to a limited group of real customers to get feedback.
Does signing off UAT mean there are no bugs?
No. It means the software is good enough to run the business and the known issues are small enough to fix after launch. List those accepted issues in the sign-off so they are not forgotten.
Sources
Want this built for your business?
UC Tech builds software, apps, websites and WhatsApp automation.