-
Notifications
You must be signed in to change notification settings - Fork 0
What is an Executable Example?
An Executable Example (in short XX) can be regarded as a test case or a scenario for the system under test. It describes one specific detail of the system's behaviour and contains expectations of the behaviour's outcome. Thus, each XX is supposed to represent a test case and SysNat together with a developer of your team make this example executable. An XX consists of an unique ID (called XXID) and a list of natural language instructions. If your system under test (the test application) has a graphical user interface (GUI), you can watch during test execution how your natural language instructions controls the test application's GUI.
Each test case (i.e. each XX) consists of two or more test phases. Most typically, there are three of them:
- Arrange preconditions (setting up the test context)
- Perform the action(s) under test
- Compare the action's outcome with your expectation
For this ubiquitous pattern in testing there exist different pattern names. One is called Arrange-Act-Assert, another is called Given-When-Then.