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

Does Karate Support Def Variable update for latest data

I am doing a test case where it will call API and that data will use next API call as part of One Scenario. I am passing testdata as part of example 4 records .Here I have under one scenario first Given API call output passing to second given API…
Ramachari
  • 11
  • 3
1
vote
1 answer

How to exclude particular scenarios in BDD using QAF BDD2 framework?

I have a feature file containing multiple scenarios, few of them are manual. When I run my scenarios I want to exclude Manual scenarios. How to exclude Manual scenarios using QAF BDD2? Ex: Feature Hello @channel.. @run Scenario: Run this…
Akshata
  • 11
  • 1
1
vote
2 answers

Parameters passed in cucumber feature file, not working in step defination script

Query: Parameters passed in cucumber feature file, not working in step defination script. I tried to pass browser name from cucumber and script should run as per inputs. Below is the feature file and step definition which expected to work …
Kishor B
  • 45
  • 2
  • 10
1
vote
0 answers

Spring Boot With Cucumber Integration

I have been working on a spring boot application I would like to test with cucumber (for business driven development). I can successfully run the cucumber tests with my code, or I can boot the spring context, but I cannot seem to figure out a way…
Connor Butch
  • 648
  • 1
  • 10
  • 28
1
vote
2 answers

NuGet Package with SpecFlow Hooks

I have created a SpecFlow hooks class to generate Extent Report in BDD Specflow C# project. It is working fine and the report got generated. [BeforeTestRun] public static void InitializeReport() { //Initialize Extent report…
Kingsly Bose
  • 103
  • 1
  • 4
1
vote
1 answer

AfterFeature hook not working properly in specFlow

I have 2 feature files with 2 step definition classes.Each class has methods with [AfterFeature] hook.While executing feature2, the method defined under [AfterFeature] hook in step definition file for feature1 gets invoked.
1
vote
2 answers

Cucumber Js, What's the best practice if I need to use the value from Given step?

The approach I figure out is this Given( `Step1`, async function() { const IwantToUseThisObj = { A: 'a', B: 'b' } this.IwantToUseThisObj = IwantToUseThisObj } ) Then(`Step2`, async function() { IwantToUseThisObj =…
hrabal
  • 155
  • 1
  • 6
1
vote
1 answer

Cucumber regex step definition

Can someone explain what is the difference between @When("some text (.*)") and @When("^some text ([^\"]*)$") ? The former worked when using a straightforward step, but when using a data table it maps only to the first table item.
Mate Mrše
  • 7,997
  • 10
  • 40
  • 77
1
vote
1 answer

Effective execution of BDD scenarios in Cucumber

I have started to use Selenium + BDD Cucumber and I find these two technologies working quite nicely together. I am a bit concerned regarding the approach to what can be improved much more if Cucumber was offering BeforeAll and AfterAll annotations…
1
vote
1 answer

Is there a way to modify the cucumber report from testRunner's beforefeature hook?

I am calling few APIs in beforefeature hook and below are the goals I want to achieve. Verify the response of those apis. - Done. Publish the results of api response in cucumber report. I can call the APIs from background of each feature class but…
afk
  • 13
  • 4
1
vote
2 answers

Gherkin Multiple step definitions match

I'm trying to understand Gherkin, enough that I can separate out the user stories and allow the business expert to write them. If I have a Background (version 1), a common precondition, why do all my Scenarios get errors telling me "Multiple step…
macasas
  • 497
  • 6
  • 20
1
vote
1 answer

Why isn't Cucumber considered as a testing tool?

I'm new to Cucumber, and I'm trying to understand the tool. While reading the documentation, I found that it is defined shortly as "a tool that supports BDD": Cucumber is a tool that supports Behaviour-Driven Development(BDD). Also it is described…
user6039980
  • 3,108
  • 8
  • 31
  • 57
1
vote
1 answer

Run all Python bdd Behave and unittest

I have a python application with a number of unit tests which I implemented using unittest library. There are also a number of bdd tests which I implemented using Behave package. Is there a way to run all of the unit tests along with the bdd tests…
InfoLearner
  • 14,952
  • 20
  • 76
  • 124
1
vote
1 answer

Step data in BDD using python and differencess between Scenario Outline

How step data works in behave?e.g I have this part of code Scenario: some scenario Given a set of specific users | name | department | | jon | Beer Cans | | adda | Silly Walks | | Two-Lumps | Silly Walks | …
ranger
  • 637
  • 2
  • 9
  • 18
1
vote
3 answers

Confusion about functional testing, BDD and TDD

I have a form where several fields have to be filled in. However, only one field is compulsory. So, I came up with the following spec: [Subject(typeof(CompanyHomeController))] public class when_the_save_button_is_clicked { private It…
DavidS
  • 2,179
  • 4
  • 26
  • 44