Demo.feature
ü Feature file contains all the Cucumber steps in the Cucumber Format
(i.e Given When Then)
Good to know that
ü Every feature file should have a Global Header with keyword called
"Feature"
"Feature:
<<Description of the scenarios covered in the file>>"
ü We can write more than one test scenario in the same feature file
ü We can separate the test scenarios by using the keyword called
"Scenario" or "Scenario Outline"
ü "Scenario Outline" keyword is used when we parameterize
the steps with multiple data
ü Parameterized values are passed to the test step by using the
keyword called "Examples"
ü Examples keyword can be a table containing more than one column and
one row
Syntax:
Examples:
| browser|
website | userName | password |
| ie | www.abc.com | user1 | password1 |
| ff | www.def.com | user2 | password2 |
“Browser”,
“website”,
“username”
and “password”
are the variable names.
No comments:
Post a Comment