Dashboard > GreenPepper Open Documentation Refactoring > ... > 7. Advanced > Do with - Table, Bullet List or Number List
  GreenPepper Open Documentation Refactoring Log In View a printable version of the current page.  
  Do with - Table, Bullet List or Number List
Added by Laurent Cobos, last edited by Laurent Cobos on Aug 13, 2009  (view change)
Labels: 
(None)

Do With - Table, Bullet List or Number List example

supports the expression of rules in table format, bullet list format or number list format. The following examples are equivalent and will yield the same results when executed.

It is important to note that the table and bullet list examples are not executable since the import com.greenpepper.samples.fixture.bank and do with bank rules cannot be specified twice in the same page. Even though it is possible to change between the two methods in the same page, you must keep in mind that the tests are executed in the same system under development. So it is not necessary to re-specify the same rule in the page.

Table

import
com.greenpepper.samples.application.bank
do with bank
open checking account 12345-67890 under the name of Spongebob   Squarepants
check that balance of account 12345-67890 is $0.00
deposit $100.00 in account 12345-67890
check that balance of account 12345-67890 is $100.00

Bullet List

  • import
  • com.greenpepper.samples.application.bank


  • do with bank
  • open checking account 12345-67890 under the name of Spongebob _Squarepants
  • deposit $100.00 in account 12345-67890
  • check that balance of account 12345-67890 is $100.00

Number List

  • import
  • com.greenpepper.samples.application.bank


  1. do with bank
  2. open checking account 12345-67890 under the name of Spongebob _Squarepants
  3. deposit $100.00 in account 12345-67890
  4. check that balance of account 12345-67890 is $100.00

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