Suomi.fi for Service Developers
Go directly to contents.
Best practices for developers
API design in public administration

Prepare for API testing

Software testing must be continuous

Software testing means testing how a computer program or application behaves. By testing you can get closer to ensuring that a program or application works as expected.

APIs are subjected to

  • unit testing
  • integration testing.

When developing or maintaining software, testing should be continuous.

Updated: 6/5/2026

You cannot test everything

It is important to understand that you cannot test everything in a large configuration.

Testing should be complemented with

  • monitoring APIs’ operation while in use (usage analytics)
  • performance testing.

The centralised API management tools discussed above often include an analytics functionality, which should be used for these purposes.

Updated: 6/5/2026

Performance testing

The goal of performance testing is to see how the API functions normally and in peak traffic conditions.

Performance testing produces valuable information about

  • the load the API can withstand
  • the way the API works in different load conditions.

There are six ways to test API performance:

Term in English

Term in Finnish

Description

Smoke test

Savutesti

API operation is tested with a light load. This test should be performed whenever any modifications are being made.

”Average”
load test

Keskimääräinen kuormitus

The API is tested under normal conditions.

Stress test

Stressitestaus

The operation of the API is tested with a high load.

Soak test

Pitkän aikavälin testaaminen

The API is tested with a normal load over a longer period (several days).

Spike test

Piikkikuormitustestaus

The API is tested by increasing the load quickly (peak load testing).

Breakpoint test

Hajoamispisteen testaaminen

The aim is to find the limits of the API's performance. Knowing them will come in handy in life cycle management, maintenance and development.


Various performance tests provide valuable information about how the API and the back-end system work. They also help to plan the API's life cycle if, for example, the load increases.

Updated: 6/5/2026

Are you satisfied with the content on this page?

Glossary