Skip to main content

Black-Box Testing

In Turkish
Kara Kutu Testi
Updated 2 min read

Share this page

Send the link, quote the definition with a link back, or show it as a card on your own site.

https://softwaredictionary.org/terms/black-box-testing

In short

Black-box testing checks software only through its inputs and outputs, against what it is supposed to do, without looking at or relying on the code inside.

What is black-box testing?

The tester treats the system as a closed box: give it input, observe the output and compare it with the specification or requirements. A tester might check that a checkout rejects an expired card, that a search for a missing product shows a helpful message, or that an API returns a 404 status for an unknown ID, all without knowing how the code is written.

Several techniques make black-box testing systematic. Equivalence partitioning groups inputs that should behave the same, so one value can stand for the group. Boundary value analysis tests the edges, such as 0, 1, the maximum and one past the maximum. Decision tables cover combinations of conditions, and state transition testing checks how a system moves between states such as draft, published and archived.

Because it doesn't depend on the implementation, black-box testing works at every level: unit tests of a function's contract, API tests, end-to-end tests and acceptance tests written from user stories. Testers don't need to read the code, and tests stay valid when the internals are refactored.

A common misconception is that black-box testing is enough on its own. Without seeing the code, it can miss paths that the requirements never mention, such as an error-handling branch or a special case hidden in the logic. Combining it with white-box techniques and coverage measurements gives a fuller picture.

Key takeaways

  • Black-box testing checks inputs and outputs against requirements.
  • Testers don't need to know or read the code.
  • Equivalence partitioning and boundary value analysis structure it.
  • It works at every level and survives refactoring.
  • It can miss code paths that requirements don't describe.

Readers ask

What is the difference between black-box and white-box testing?

Black-box testing designs tests from the specification and checks behavior from the outside. White-box testing designs tests from the code's structure to exercise its branches and paths. Most teams use both.

What is boundary value analysis?

A technique that tests values at and around the edges of valid ranges, such as the minimum, maximum and just outside them, because errors are most common at those boundaries.

Is end-to-end testing black-box testing?

Usually, yes. End-to-end tests drive the application like a user and check visible results, without depending on how the code is written internally.

Often compared

See also

Spotted a mistake or something missing on this page?Suggest an edit

Read a random page
Open today's review
Switch to the dark theme
Read this page in Türkçe

More

Settings