📜  黄瓜背景 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:45.083000             🧑  作者: Mango

代码示例2
Background in Cucumber is used to define
a step or series of steps which are common 
to all the tests in the feature file.
It allows you to add some context to the 
scenarios for a feature where it is defined.
A Background is much like a scenario containing 
a number of steps. But it runs before 
each and every scenario where for a feature in which it is defined.