Dashboard > GreenPepperOpen > ... > Writing executable specifications > Do With Definition
  GreenPepperOpen Log In View a printable version of the current page.  
  Do With Definition
Added by Louis Thibault, last edited by Francois Denommee on Feb 09, 2009  (view change)
Labels: 
(None)

DEFINITION

The DoWithInterpreter is used to express interactions with the system under development that must be performed in a particular order. This form of specification provides information about the business flow.

When a sequence of action is executed, GreenPepper confirms that each action has successfully been performed.

  • As for all other interpreters, the first row of the DoWithInterpreter specifies the name of the interpreter and the name of the sequence of actions to be tested. What makes the DoWithInterpreter particular is that it only have to be defined once for all the sequences of actions expressed in a page. Obviously, the DoWithInterpreter must be define before any sequence of actions.
  • The following rows are used to express specific actions.
  • The form of each row of a DoWithInterpreter shall respect the following rules:
    • a row shall begin with a part of the action description,
    • each parameter shall be isolated in a cell,
    • each parameter shall be separated by parts of the action description.
  • An action description can be left blank in order to separate two parameters.
  • The DoWithInterpreter provide a minimum of keyword used to define specific action.
  • The DoWithInterpreter may also be expressed in Bullet List form or Number List form (see example).
Begin Info
End Info

Specific Keywords

GreenPepper offers a list of useful keywords to support the Business Expert. Those keywords are placed at the beginning of an action row.

Accept Confirm that the action as been executed by the system under development.
Check Verify the specified expected value with the value returned by the system under development
Reject The action should not be performed by the system under development (expected errors).
Display Print the value returned by the system under development.

Coloring

GreenPepper will visually show the test result by coloring each testing cell:

GREEN When the action has been executed successfully, GreenPepper color the cell(s) in green.
RED If the action execution has failed, GreenPepper color the cell(s) in red.
YELLOW If the system encounters an execution error, the cell is colored yellow and GreenPepper provides information about the error.
GRAY When the action has been executed successfully, GreenPepper will display the returned value in gray.


Standard form (without keyword) Only the Action description will be colored.
Accept Only the cell containing the keyword Accept will be colored.
Check The cell containning the expected value will be colored. In the case of a failure, GreenPepper will show the expected and the returned values.
Reject Only the cell containing the keyword Reject will be colored.
Display A new cell at the end of the row will be colored containing the returned value.

DEMONSTRATION LICENSE - This Confluence site is for demonstration purposes only. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.4.3 Build:#705 Mar 21, 2007) - Bug/feature request - Contact Administrators