
Given-When-Then
Given-When-Then is a structured way to describe test scenarios clearly. "Given" sets the initial conditions or context (e.g., a user is logged in), "When" describes the action or event that occurs (e.g., the user clicks a button), and "Then" states the expected outcome or result (e.g., the system displays a confirmation message). This format helps teams communicate and verify how a system should behave in specific situations systematically, making it easier to ensure software functions correctly and consistently.