Professional Documents
Culture Documents
cucumber is tool to run tests, written in BDD formate, cucumber tool write in
ruby , but now support java and jave script testing also.
2)What is BDD?
BDD stands for Behaviour Driven Development,in BDD software is developed using
behaviour specification written in the tests ,
BDD test written ordinary english language , coders and non coders both can
collabrate defining tests, Bdd all roles like developers , devops ,
and QA, and product owners understand application features without knowing coding
details.
3) Advantage of cucumber?
Future file :
step definition file :
test runner file:
Future file: it describes the furture , with one or more test secnario's. Maximium
no of secnarios in the future file is fixed in the projects
step defination file :Its maps, easest
test runner file: Has the both information of both furture file and step definition
file.
Advantages of Cucumber
It is helpful to involve business stakeholders who can't easily read and understand
the
code
Style of writing tests allow for easier reuse of code in the tests
You can easily integrate with a host of high-quality automation libraries to drive
almost
any kind of application.
To use the different Gherkin keywords, we have to create a feature file with
extension
-feature. This file is called as feature file. Feature file contains business
requirements.
Gherkin uses following keywords:
a) Feature
b) Scenario
c) Scenario Outline
d) Given
e) When
f) Then
g) Ard
h) *
i) Examples
j) Background