Testing fundamentals

General Fundamentals

What you should know if you want to test software systematically in your company: from objectives and principles to the test process, test levels, test types and automation.

Get in touch

The term

What does testing actually mean?

Testing is more than running the finished software and checking whether it works. It covers every activity used to find defects and assess the quality of a work product, from requirements and design to code.

Two questions always apply:

  • Verification: Does the product meet the specified requirements? Was it built right?
  • Validation: Does the product meet the real needs of its users? Was the right thing built?

There are also two ways of checking. Static testing executes nothing: requirements, designs and code are read in reviews or checked with analysis tools. Dynamic testing executes the software and compares its behaviour with the expected result. The two complement each other, because each finds defects the other misses.

Testing is also different from debugging: testing reveals defects, debugging finds their cause and fixes them. Then the software is tested again.

Benefits

Why systematic testing pays off

Reduce risk

Faulty software costs money, time and trust, and in safety-critical products it can put people at risk. Testing reduces the risk of defects only showing up in operation.

Early is cheaper

A defect in a requirement that only surfaces in the finished device triggers changes at every level. Testing early (“shift left”) saves time and money later on.

Make informed decisions

Test results show how far along a product really is. They are the basis for approvals and for deciding whether a release can ship.

Provide evidence

Contracts, laws and standards often require documented testing. A traceable test process delivers that evidence along the way.

Seven principles

What always applies in testing

1

Testing shows defects, not their absence

Tests can prove that defects exist, but never that none are left. They reduce risk, they do not rule it out.

2

Exhaustive testing is impossible

Even a few inputs lead to countless combinations. Instead of testing everything, prioritise by risk and use suitable test techniques.

3

Early testing saves time and money

The earlier a defect is found, the fewer follow-on defects it causes. That is why testing starts with the requirements.

4

Defects cluster together

Most defects usually sit in a few components. Knowing where they are lets you focus your testing effort.

5

Tests wear out

Running the same tests over and over eventually finds no new defects. Test cases and test data need regular review and extension.

6

Testing depends on context

A medical device is tested differently from a web app. No single approach fits every product.

7

Defect-free does not mean useful

Even a product without known defects can miss what users need. Verification must always be paired with validation.

Test process

How testing works step by step

A good test process follows recurring steps. In practice they often run in parallel or in loops and are tailored to the project.

1

Plan

Define test objectives, approach, scope, resources and schedule. During the project, progress is compared with the plan and adjusted as needed.

2

Analyse

Evaluate requirements and specifications: what needs to be tested? Ambiguities and gaps in the requirements often surface at this stage.

3

Design

Derive test cases: how will it be tested? This includes the test data, test environment and tools required.

4

Prepare

Create test data, write manual or automated test scripts, set up the test environment and define the order of execution.

5

Execute

Run the tests, compare actual with expected results, analyse deviations and record them as defect reports.

6

Complete

Summarise results in a test report, hand over open items, archive test assets and capture lessons learned for the next project.

To show which requirement is covered by which test, the two are linked. This traceability is mandatory in regulated industries.

Test levels

From a single building block to the finished product

Testing happens on several levels. Each level has its own objective and finds different defects.

Component testing

Individual functions or modules are checked in isolation, usually automated and by the developers themselves. Also called unit testing.

Integration testing

Checks whether components work together correctly: interfaces, data exchange and interaction with other systems.

System testing

The complete product is tested against its requirements in an environment as close as possible to real-world use.

Acceptance testing

Users, customers or authorities check whether the product is fit for its intended use. Validation is the main focus here.

Test types

What exactly is tested

Across the test levels there are different test types. Most of them can be applied at any level.

  • Functional testing: checks what the system should do. Does a function deliver the right result?
  • Non-functional testing: checks how well the system works, for example reliability, response time, usability, IT security and functional safety.
  • Black-box testing: test cases are derived from the specification without looking at the code. Typical techniques are boundary value analysis and equivalence partitioning, i.e. testing values at and between the permitted limits.
  • White-box testing: test cases are derived from the code. The aim is high coverage, so that as many statements and branches as possible are executed at least once.
  • Confirmation testing: after a fix, checks whether the defect has really been resolved.
  • Regression testing: after every change, checks whether new defects have appeared elsewhere. Because these tests run again and again, they are ideal candidates for automation.

Experience-based testing adds to this: experienced testers look specifically where defects tend to occur, for example using checklists or exploratory testing.

Priorities and tools

Test based on risk, automate wisely

Risk-based testing

Since you can never test everything, effort follows risk: how likely is a defect, and how serious would its consequences be? Critical functions are tested earlier and more thoroughly.

The test pyramid

Many small, fast component tests form the base, fewer integration tests sit above them and a few complex system tests form the top. This keeps testing fast and affordable.

Automation

Automated tests save repetitive manual work, run the same way every time and give fast feedback, for example on every code change in the CI/CD pipeline.

Realistic expectations

A tool alone does not guarantee success. Introduction, test script maintenance and training take effort, and not every test is worth automating.

Testing embedded systems

MIL, SIL, PIL and HIL at a glance

Embedded software, the software that controls a device, is tested step by step. The “X-in-the-loop” methods differ in how much is already real and how much is still simulated.

MIL – Model-in-the-Loop

The controller exists only as a model and is tested against a model of its environment. Very early and very fast, but still far from the real device.

PIL – Processor-in-the-Loop

The code runs on the real processor while the environment stays simulated. This reveals differences caused by the compiler, numerical precision and execution time.

In short: SIL tests the code, HIL tests the device. The two complement each other: many defects can be found early and cheaply in SIL, while only HIL shows the behaviour on the real hardware.

First steps

How to get started with testing in your company

  1. Clarify your goals. What should testing achieve: fewer defects in the field, faster releases or evidence for regulatory approval?
  2. Assess risks. Which functions are critical, and where would defects be especially costly or dangerous? Start there.
  3. Make requirements testable. Only clear, verifiable requirements can be tested properly. A review by testers reveals gaps early.
  4. Start early. Component tests and static analysis run from the beginning, not just before delivery.
  5. Automate step by step. Begin with regression tests that run automatically on every change, and expand the test environment over time.
  6. Involve everyone. Quality is the whole team’s job. Development, testing and the business side work best when they collaborate closely from the start.
Contact

Let's connect!

Tell us about your device under test. In just a few minutes, we can find out whether our solutions are right for you!

Contact form

Fill in the form and our team will get back to you shortly.

By submitting you agree to our privacy policy .