Styrow.dev
Question 13 of 27
Cucumber Topic: General medium

Explain background in feature file

Question

Explain background in feature file

Answer

Steps written under the Background keyword are executed before every scenario. For example: If you want to execute the same steps for every scenario like login to the website, you just write those common steps under the background keyword. While executing every scenario, steps written under background will be executed first.