Questions tagged [bdd]

BDD stands for Behavior Driven Development. It is related to, and derived from, TDD (Test Driven Development) and ATDD (Acceptance Test Driven Development). It differs from them in its language, preferring "example", "scenario" or "specification" to "test".

BDD stands for Behavior Driven Development.

It is related to, and derived from, TDD (Test Driven Development) and ATDD (Acceptance Test Driven Development). It differs from them in its language, preferring "example", "scenario" or "specification" to "test".

Unlike TDD, BDD is not focused on functionality but on behavior.

It improves communication between team members and it bridges the gap between non-technical and technical people working on the same project by using a common language. Whereas TDD focuses on "how" to implement the functionality, BDD explains "what" functionality to implement.

BDD is an Agile software development process...

...that encourages collaboration between developers, QA and business participants in a software project.

BDD is also known as...

... (Specification by Example) or (Acceptance Test Driven Development). It is derived from (Test Driven Development). It differs from them in its language, preferring example, scenario or specification to test. The language is intended to encourage questioning and conversation around the scenario or example, as BDD works from an assumption that we don't know enough to write an accurate test in the first place.

Scenario-based BDD tools use a Given / When / Then format to capture and automate the conversations. TDD and mocking tools are commonly used at a class level.

Tag questions about binary decision diagrams with . Tag questions about Microsoft's Business Desktop Deployment, now Microsoft Deployment Toolkit, with .

3390 questions
1
vote
1 answer

Do we have anything like @AfterScenario in Karate?

I would like to call a method after each scenario from a single Feature with Karate, do we have something like @AfterScenario in Karate? Or is there any other way to achieve this functionality?
ernitingoel
  • 621
  • 2
  • 9
  • 24
1
vote
2 answers

Behave `before_scenario` hook does not remember initialized variable value

I am using behave fixtures to create a counter during test run. I initialize the counter in before_all hook, and later increment it in before_scenario every time a scenario is running. I thought before_all runs once during the entire test, and if a…
Payam Mesgari
  • 953
  • 1
  • 19
  • 38
1
vote
1 answer

How to get JSON output with Karate & Junit5?

I am using com.intuit.karate.junit5.Karate and it is generating the HTML report only but I would like to have JSON output. I looked at the code however it is by default generating the HTML output only by calling Engine.saveResultHtml() method. May…
ernitingoel
  • 621
  • 2
  • 9
  • 24
1
vote
1 answer

How to get the specflow scenarios in c# objects

I want to read each feature file and create objects for each scenario. After reading the .feature file. I should get objects like below: Input @mytag Scenario: Add two numbers Given I have entered 50 into the calculator And I have…
Sandesh A D
  • 162
  • 2
  • 12
1
vote
2 answers

rspec BDD tests - trying to test index controller method

I have a rails app with a cars model that takes the attribute of 'model'. I'm just trying to run a test to see if the index method in the cars controller will display all the cars. I'm not sure how to go about this. The test currently passes, but it…
b.herring
  • 563
  • 2
  • 18
1
vote
1 answer

TestCafe integration with cucumber - test cases in github project time out

I have been experimenting with javascript frameworks for test automation and one of them is testCafe. I have been able to set up a simple TestCafe project and run some test cases for my application. However, now, the requirement is to have some…
Monnie_tester
  • 439
  • 1
  • 6
  • 20
1
vote
1 answer

Is there a way to set variables in a scenario and use them in another scenario in karate framework?

I get a value in the response by running one of the scenarios and I would like to use that value in the next scenario. Is there a way to set variables in the context of a feature with karate? I know I can call another feature from within the feaure,…
cris
  • 171
  • 3
  • 14
1
vote
1 answer

Stop godog from parsing Scenario Outline example data table rows

I am not sure it this is intended to be so, but I am confused by the behavior. When I have the following Scenario Outline: Scenario Outline: outline1 Given url And query parameters When method Then status is Examples: | method |…
iam thadiyan
  • 471
  • 1
  • 4
  • 19
1
vote
0 answers

cucumber test for mongoid_grid

I am using mongoid_grid gem to store my files. It is working fine on development but while running cucumber test I am getting this error: Database command 'filemd5' failed: {"errmsg"=>"exception: best guess plan requested, but scan and order…
Sadiksha Gautam
  • 5,032
  • 6
  • 40
  • 71
1
vote
1 answer

Cucumber with Qt/QML

Is there a way to use Cucumber with Qt/QML? and if there's some examples, i would appreciate it. Thanks.
imad kimouche
  • 133
  • 1
  • 1
  • 10
1
vote
1 answer

Assigning multiple JSON values to XML file which returned from a Database call on Karate

For a test project, I am making a call to database, and getting necessary fields which I am going to set in my xml file to make a SOAP service call. As far as I see, the database call returns as JSON value, so that I am having some trouble to assign…
Prometheus
  • 1,522
  • 3
  • 23
  • 41
1
vote
3 answers

Rhino Mocks - How can I test that at least one of a group of methods is called?

Say I have an interface IFoo which I am mocking. There are 3 methods on this interface. I need to test that the system under test calls at least one of the three methods. I don't care how many times, or with what arguments it does call, but the case…
Frep D-Oronge
  • 2,618
  • 3
  • 27
  • 27
1
vote
1 answer

How Can I Retrieve Text from a div using Cucumber?

I have been trying to get the text from various div and tables for some BDD's I am writing in Cucumber. Everytime I try to acquire anything from the frontend of the website I'm working on it just pulls nothing. I need to know what I specifically…
Jack Parker
  • 547
  • 2
  • 9
  • 32
1
vote
1 answer

How to pass data from promise to afterEach in Mocha?

I found some responses for this problem but they don't work with promises probably. I want to clear DB after each test. I am trying to save id from request response and collect/pass it to afterEach. Unfortunatelly, promise doesn't override value and…
bdddd
  • 103
  • 1
  • 10
1
vote
2 answers

Cucumber Gherkin parser java

Does anyone know how to use Gherkin to parse custom feature file? I want to create a tool to process feature file and execute custom java code. I want Gherkin to process file similar to this: SCENARIO: My Fist sample test WHEN [this condition…
user3431327
  • 135
  • 4
  • 14
1 2 3
99
100