Thursday, December 30, 2010

Key Points of Cucumber testing tool.

To install cucumber :

Goto root to install


[gem install rspec --version 2.0.0.beta.19]

Now type rspec --help, and you should see output that starts like this:

Usage: rspec [options] [files or directories]

[gem install cucumber --version 0.8.5]

Usage: cucumber [options] [ [FILE|DIR|URL][:LINE[:LINE]*] ]+



To see the version of rspec and cucumber then type in terminal :

[cucumber --version]
[rspec --v]


To run the test cases :

Now save the file, open up a command shell, cd into the directory in
which it is saved, and type this command:

[rspec filename.rb]



Keywords of cucumber :

Features
Scenarios
Given
When
Then
And
But

No comments:

Post a Comment