Reading and understanding a GreenPepper Executable Specification
A GreenPepper Executable Specification is a document mainly composed of free text and GreenPepper examples.
As a GreenPepper example we mean an executable structure that will be interpreted over the System under test.
- Table (Most common form).
- The first cell is reserved to the Interpreter which will dictacte the exact table structure.
| My Interpreter |
... |
| ... |
... |
- The Second cell is reserved to the Fixture.
| My Interpreter |
My Fixture |
| ... |
... |
- The Third cell is an optional comment that is ignored by GreenPepper .
| My Interpreter |
My Fixture |
good old comment |
| ... |
... |
- Every other cells following the fixture name is a parameter separated by a comment cell.
| My Interpreter |
My Fixture |
comment |
parameter 1 to My Fixture |
comment |
second parameter |
| ... |
... |
Ex: | rule for | product listing | sorting using | ascending | order |
rule for -> interpreter
product listing -> fixture name
sorting using, order -> comments
ascending -> parameter to product listing fixture
-
- Table headers <th><\th> are supported and interpreted like normal table elements.
- The table doesn't have to be rectangular.
| This is a valid GreenPepper example |
| a |
b |
sum() |
| 1 |
2 |
3 |
- Bullet list
- Cell simulation with <style> such as: bold italic ...