Give an example of behaviour driven test in plain text?
Answer / Ravinder Rawat
In Cucumber (Ruby), a behavior-driven test example could look like this:nnFeature: Library Book CheckoutnnScenario: Borrowing a booknnGiven the library has the book 'War and Peace'nWhen I check out the book 'War and Peace'nThen I should be able to take the book homenAnd the library should have one less copy of 'War and Peace'
| Is This Answer Correct ? | 0 Yes | 0 No |
What is step definition in cucumber?
What is a feature in cucumber?
Give an example of behaviour driven test in plain text?
What are formatter plugins in cucumber?
What are steps in cucumber?
What is the difference between class and module?
How to generate cucumber execution reports?
Cucumber tests are divided into how many parts?
Explain when to use rspec and when to use cucumber?
What are before, after, beforestep and afterstep hooks?
How to run a particular scenario from a feature file?
What are the benefits?