Dashboard > GreenPepper Seeds > Home > Interpreter and Fixture Selection (JAVA)
  GreenPepper Seeds Log In View a printable version of the current page.  
  Interpreter and Fixture Selection (JAVA)
Added by Vincent Tence, last edited by Laurent Cobos on Jun 27, 2007  (view change)
Labels: 

 GreenPepperAnonymous access is denied. You must log in to use GreenPepper.

Interpreter and Fixture Selection

Rules to identify which interpreter the example is using.

Import
com.greenpepper.interpreter

First cell of first rows

To select which interpreter (and which fixture if any) will process a test table, GreenPepper looks at the first row of the test table. The first cell should name the interpreter to use.

an interpreter
fixture name? fixture parameters?
nothing  

Adding a fixture

If the interpreter requires a fixture, the name of the fixture goes in the second cell.

an interpreter a fixture
fixture name? fixture parameters?
AFixture nothing

Parameters to the fixture

Fixtures might needs parameters. These optional parameters are placed in the remaining cells. Even parameters are ignored and serve to document odd parameters. In other words, cells after the fixture name alternate between comments and real parameters.

an interpreter a fixture with a parameter
fixture name? fixture parameters?
AFixture a parameter
an interpreter a fixture with a 1st parameter and a 2nd parameter then a 3rd parameter
fixture name? fixture parameters?
AFixture 1st parameter, 2nd parameter, 3rd parameter

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