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
2 answers

How to handle environment prerequisites in BDD?

I am working on an automation test project (using Pytest BDD) and I constantly hit the problem of how to handle environment prerequisites using BDD and Gherkin. For example, almost all of the scenarios require new entities created…
taught
  • 23
  • 6
1
vote
0 answers

hooks on steak (behaviour driven development)

I want to use hooks in steak to prevent excessive repetition of code. Is there any way to use hooks as in steaks like in cucumber? Any help will be appreciated.
Sadiksha Gautam
  • 5,032
  • 6
  • 40
  • 71
1
vote
0 answers

-f pretty for steak

I want to see all the steps for steak, like when I do cucumber features -f pretty for cucumber it shows all the passing, failing and undefined steps. Similarly in rspec it is -f nested. Is there any command in case of steak? In certain cases the…
Sadiksha Gautam
  • 5,032
  • 6
  • 40
  • 71
1
vote
1 answer

Is this the correct syntax to validate authorization of API? given().get("url").when().auth("username","pwd").then().assertthat().statuscode(200)

I am testing for preemptive authorization using BDD for API automation using Rest assured. Is this the correct syntax? given().get("url").when().auth("username","pwd").then().assertthat().statuscode(200) Can I write get() after given() or…
1
vote
0 answers

How should I write test for this problem?

I want to write TDD/BDD tests for this problem for my training. This problem's scenarios are: For every basket above $50, 2% of total will calculate as discount For every basket above $100, 5% of total will calculate as discount So I wrote these…
Boolood
  • 79
  • 9
1
vote
2 answers

What minimal first test I should write to start in BDD?

I am learning BDD and trying to make very simple game. Player see some polygon shape and need to guess it's area by expanding circle spot. To guess player need to hold finger on screen (mobile game) for some time to expand circle to desired size. If…
1
vote
0 answers

Existing cucumber bdd steps do not work with Karate

I have recently started using karate. I have an existing project which has steps with cucumber and now I am writing tests using karate. As Karate is built on cucumber, I am still not able to run my custom written step definitions. I tried adding all…
1
vote
1 answer

How to manage cookies with multiple requests with qaf web services request call?

I am using bdd implementation provided by qaf for test automation and using qaf-support-ws for web services testing. I found it very easy to use with all kind of features required for web services test automation with power of TestNG. It helps in…
user11353541
  • 125
  • 10
1
vote
1 answer

How to run single scenario in eclipse with qaf bdd editor?

I am using bdd implementation provided by qaf for test automation and using qaf-bdd-editors eclipse plugin for development. I am able to run my scenarios using xml configuration file but to run specific single scenario need to modify confirmation…
user11353541
  • 125
  • 10
1
vote
2 answers

The import cucumber.api.junit cannot be resolved

I am working on a Cucumber-BDD Framework where, I added all the required Maven dependencies in my POM.xml But I was not able to import Cucumber.class. I am getting the below error "The import cucumber.api.junit cannot be resolved" I tried to add…
Chaitanya Maligi
  • 217
  • 4
  • 7
  • 19
1
vote
1 answer

Missing steps when running feature file in IntelliJ

Intellij keeps saying Undefined Step when running my feature file. However, I have copied the steps and put them into another package and added that package name in the "glue" parameter for Edit configurations. Still not working. I've added the…
RShome
  • 489
  • 2
  • 11
  • 35
1
vote
0 answers

The type or namespace name 'TestFixtureSetUpAttributeAttribute' does not exist in the namespace 'NUnit.Framework'

I am creating tests in C# Selenium Specflow. My framework is fine and builds but when I add a Specflow Feature File and build my project I get the error: Error CS0234 The type or namespace name 'TestFixtureSetUpAttributeAttribute' does not exist…
Riaz Ladhani
  • 3,946
  • 15
  • 70
  • 127
1
vote
1 answer

Formulate correct scenario phrase

I would like to know, if the following Gherkin phrase correspond to BDD rules: final class KafkaSpec extends BddSpec { feature("Kafka distribution to SAP server via websocket") { scenario("Kafka consumer does not receive messages from Kafka…
softshipper
  • 32,463
  • 51
  • 192
  • 400
1
vote
0 answers

How to prioritize BDD's using specflow/xunit which runs using xunit runner

Need help here: We are using specflow with C# and my test cases run using xunit runner. Now i need to prioritize my BDD's/step definition files. We already have unit test cases for verification of pom's which uses [Fact]. Can i use the same thing in…
Prp
  • 51
  • 5
1
vote
1 answer

How to use AsyncFeatureSpec?

I am trying to write asynchronous test with AsyncFeatureSpec as the following: import java.net.ConnectException import org.scalatest._ final class SapRsSpec extends AsyncFeatureSpec with Matchers with GivenWhenThen { feature("Kafka…
softshipper
  • 32,463
  • 51
  • 192
  • 400