Unlike white-box testing, black-box testing focuses solely on the external behavior of the software. Testers do not have knowledge of the internal code and instead examine the functionality of the software based on its specifications and requirements. This technique helps ensure that the software meets the desired outcomes without having insights into the implementation details.
Example:
Feature: Login
Scenario: Successful login
Given I am on the login page
When I enter valid credentials
And click the login button
Then I should be redirected to the home page