Give an example of behaviour driven test in plain text?



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

Post New Answer

More Cucumber Ruby Interview Questions

What is step definition in cucumber?

1 Answers  


What is a feature in cucumber?

1 Answers  


Give an example of behaviour driven test in plain text?

1 Answers  


What are formatter plugins in cucumber?

1 Answers  


What are steps in cucumber?

1 Answers  


What is the difference between class and module?

1 Answers  


How to generate cucumber execution reports?

1 Answers  


Cucumber tests are divided into how many parts?

1 Answers  


Explain when to use rspec and when to use cucumber?

1 Answers  


What are before, after, beforestep and afterstep hooks?

1 Answers  


How to run a particular scenario from a feature file?

1 Answers  


What are the benefits?

1 Answers  


Categories
  • Cucumber Selenium Interview Questions Cucumber Selenium (0)
  • Cucumber Ruby Interview Questions Cucumber Ruby (31)
  • Cucumber Interview Questions Cucumber (72)