开发者

SpecFlow - How you properly use the "Background:" command in the feature file?

I've been reading articles, watching some screen-casts and playing around with a few sample/demo tutorials.

I read an article where someone said "don't use too many backgrounds". I was curious so I tried it in SpecFlow开发者_C百科's feature file and it highlights as a command.

I've been trying to find some language guide for "Gherkin" since that's what it's written for, but no luck yet.

So how is it used? and is there any documentation that will show me what other commands I'm missing and how to use?

Thanks.


I've been trying to find some language guide for "Gherkin" ... but no luck yet.

Since SpecFlow is designed after cucumber (a BDD framework for programming language Ruby) it is a good idea to look into the Cucumber wiki if you have questions about Gherkin.

I found this description of "Background"
https://docs.cucumber.io/gherkin/reference/#background

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜