Skip to content

ResourcesStepdefs

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

#Resources Stepdefs

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

##Description

ResourcesStepdefs are all the step definitions you can use in your Cucumberfeatures in order to deal with common actions you may require to do withresources you'd need to use for your tests.This includes for example stepdefs like downloading resources, unzippingthings, etc.

##Stepdefs

###unzip A Downloaded Zip File In A Directory

Syntax: When: "^I unzip into directory \"([^\"]*)\" a zip file from \"([^\"]*)\"$"

Documentation:

Allows to download a ZIP file into a specified directory and unzip it inthat location

###unzip A Zip File From The Classpath In A Directory

Syntax: When: "^I unzip into directory \"([^\"]*)\" a zip file from classpath named \"([^\"]*)\"$"

Documentation:

Allows to copy a ZIP file recovered from a local file into a specifieddirectory and unzip it in that location

###delete Directory

Syntax: Then: "^delete directory \"([^\"]*)\"$"

Documentation:

Allows to delete a directory from the file system (useful for cleaningthe mess we did with all the tests :p)

###change The Value Of An Element In An XML File

Syntax: When: "^I change the value of element \"(.*?)\" in xml file \"([^\"]*)\" to \"(.*?)\"$"

Documentation:

Allows to modifiy the content of an element in xml file

###set A Parameter To A Specified Value From An XML File

Syntax: When: "^I set the parameter \"(.*?)\" to value of element \"(.*?)\" in xml file \"([^\"]*)\"$"

Documentation:

{javadoc}

Clone this wiki locally