Bdd notes
Bdd notes
11) What is the difference between Given, When, Then steps in feature file?
Given steps are used to describe the initial context of the system the scene of
the scenario.
When steps are used to describe an event, or an action.
Then steps are used to describe an expected outcome, or result.
17) What is the use of glue property under Cucumber Options tag?
The glue is a part of Cucumber options that describes the location and path of
the step definition file.
24) Name any two testing frameworks that can be integrated with
Cucumber?
TestNG and Junit can be easily integrated with Cucumber.
25) Name any two build management tools that can be integrated with
Cucumber?
26) Name any advanced framework design that can be used with
Cucumber?
Page Object Model can be used with Cucumber.
28)) Can you name any other BDD tools except Cucumber?
Behave, JBehave, and SpecFlow
29) Can we write cucumber tags ( @smoke , @Run etc ) above feature
keyword in feature file?
Yes. We can write these cucumber tags above the feature keyword.
31
Eclipse IDE?
Cucumber Eclipse Plugin can be used for Cucumber integration in Eclipse.
42) What is the maximum number of steps that are to be written within a
scenario?
There is no fixed limit of steps within a scenario and it is completely dependent
on the application.
51) What is the main difference between Scenario and Scenario outline?
-Scenario can be executed only once but Scenario outline can be used to
execute scenario multiple times with different sets of data.
-
contain examples.