Skip to content

DBUnitStepdefs

Antoine Neveux edited this page Feb 5, 2015 · 1 revision

#DB Unit Stepdefs

Version 1.0, written by mechikhi, generated by Docukes on Thu Feb 05 18:39:13 CET 2015

##Description

DBUnitStepdefs are all the step definitions you can use in your Cucumberfeatures in order to interact with DBUnit. It allows you to manipulate adatabase you may use for running tests in order to set up some data in it, orto put it in a particular state.

##Stepdefs

###before

Syntax: Before: null

Documentation:

{javadoc}

###after

Syntax: After: null

Documentation:

{javadoc}

###fill A Table With Data

Syntax: Given: "^fill the table \"(.*?)\" with data:$"

Documentation:

Allows to pass the data to be inserted in the specified table beforestarting the scenarios

###define Dataset File

Syntax: Given: "^add dataset file \"(.*?)\"$"

Documentation:

Allows to add the file content to the dataset to be used used during theDBUnit operations

###define Operation To Be Executed Before The Tests

Syntax: Given: "^the operation before executing tests is (NONE|UPDATE|INSERT|REFRESH|DELETE|DELETE_ALL|TRUNCATE_TABLE|CLEAN_INSERT)$"

Documentation:

Allows to specify the setup operation to be performed before the testscenario

###define Operation To Be Executed After The Tests

Syntax: Given: "^the operation after executing tests is (NONE|UPDATE|INSERT|REFRESH|DELETE|DELETE_ALL|TRUNCATE_TABLE|CLEAN_INSERT)$"

Documentation:

Allows to specify the cleanup operation to be performed when ending thetest scenario

Clone this wiki locally