Black-box testing is usually based on some form of specification documentation, such as a system requirement specification or user stories. Since the specification documentation should describe system behaviour, particularly in the area of functionality, deriving tests from the requirements is often part of testing the behaviour of the system.