Skip to content
davidmfoley edited this page Sep 13, 2010 · 13 revisions
StorEvil interprets your plaintext specifications by matching them to methods, fields, and properties on your StorEvil Context Classes.

There are two different ways to interpret sentence fragments using StorEvil : by matching the names of the methods using reflection, or by using regular expressions to parse the text.

Although Regular Expression Matching is supported, Reflection Matching by is the preferred method.

The StorEvil plaintext language is fairly close to the Gherkin language



As an actor
I want to do something
so that I can see a result

# this is a comment

# scenarios are used to specify the test cases
Scenario: Scenario description goes here
Given some precondition
When I take some action
Then some expected result

Scenario: a scenario without the Given/When/Then syntax
In some state
Doing something
Results in some expectation

# an outline is a parameterized scenario
# it is executed once for each line in the table
Scenario Outline: addition of two numbers
Given <first> and <second>
I should expect <result>
|first|second|result|
|1    |2      |3     |
|10    |32    |42    |