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 execute same cucumber feature or scenario n times?

I need to execute one scenario which is part of one feature 100 times. There is no scenario outline as there is no data parameterization. I just need to perform gorilla testing on this particular scenario so as to make sure it passes every single…
vsingh
  • 125
  • 1
  • 2
  • 16
1
vote
1 answer

Get Karate request data using another util service

One of the param for my API is security related and linked to the environment on which the test would run , essentially it will be dynamic. Since this is security related, I have an internal rest API that provides this data. I want to understand…
varkashy
  • 374
  • 4
  • 18
1
vote
1 answer

Gherkin scenario outlines or multiple scenarios?

Is there a preferred approach when defining acceptance criteria in Gherkin format for BDD? Should I split out the scenarios as follows... Scenario: User saves contact details Given I am on the contact details page When I enter the following…
Mark Chidlow
  • 1,432
  • 2
  • 24
  • 43
1
vote
1 answer

How to avoid duplicity of user stories for different users?

I am new in BDD, so I am struggling with some basic concepts. Currently I am creating user stories for simple functionality: Login to a device. Based on BDD methodology, I have to write user story for each (type of) user separately, so I ended up…
Grador
  • 15
  • 1
  • 4
1
vote
1 answer

want to test assertion of integer value should be >3 in Karate API

json response is "Value": 0.23 i want to put assertion here value should be less than 3 so how to do this ? tried some examples in documentation but they are for array format of jsonenter code here Scenario: Shows the minimum time any DB request to…
Vanish Kota
  • 85
  • 1
  • 8
1
vote
1 answer

Running subset of tests in Cucumber with maven

I have following problem, i have class (ExoertTest.java) with one feature (with @expert tag): package opi; import cucumber.api.CucumberOptions; import cucumber.api.junit.Cucumber; import…
moroyoung11
  • 63
  • 1
  • 9
1
vote
1 answer

Using But keyword in BDD throws Step not implemented exception while running scenario in Quantum framework

I am trying to run a BDD scenario in Quantum framework. While execution, the step with But keyword fails with error "Step not yet implemented". Auto-generated code snippet by QMetry Automation Framework. TODO: remove NotYetImplementedException and…
1
vote
1 answer

@After and @Before annotation is not executing second method

I have declared 2 methods @after annotation but it will execute only the first method, it does not allow me to execute the second method. Please have a look at the below code I want to execute 1 method every time for the exit of the browser. I want…
dev
  • 191
  • 1
  • 11
1
vote
1 answer

How does BDD capture System Interaction (Persistence, API Call, Notification etc)?

I am a bit confused when preparing a test case with BDD. Here is my desired requirement expressed with Gherkin Syntax. Given A user is subscribed to the system When A user try to subscribe again Then System should send him a notification…
mnhmilu
  • 2,327
  • 1
  • 30
  • 50
1
vote
1 answer

Extending World from inside Before hook in Cucumber to alter helper behavior based on tag

I am testing my Ruby 2.6.x project with Cucumber 3.1.2. Now I would like to include different helper modules into World, depending on the tags of the scenario, like this: module NormalHelper def do_something "something" end end module…
aef
  • 4,498
  • 7
  • 26
  • 44
1
vote
2 answers

How to manage the step definition code that needs to be reused again & again

My feature file contains a feature that needs to be reused by each and every step definition file again & again. How to manage the code My feature is :- "User is on home Page". The above feature / scenario contains a code that needs to be reused…
1
vote
0 answers

An error "Null pointer Exception" is shown when executing feature file

I have written a feature file & a seperate step definition file for the same .Here main work is i want to verify the elements of a 'Register' page. But as i execute the feature file , The "Null pointer exception" error could be seen here ". My…
1
vote
1 answer

behat.yml throw error : The reserved indicator "%" cannot start a plain scalar;

I start to use behat to test my application. I have the latest version that is behat 3.5.0. Reading the 'latest' doc of behat I tried to change the place from my features to the folder /app/ like here in the official doc. So I make the same and edit…
johannchopin
  • 13,720
  • 10
  • 55
  • 101
1
vote
1 answer

How to pass parameter in Scenario outline description

Was going through Specflow-How to pass parameter in scenario outline description and wonder how to pass parameter in Scenario outline description in watir? Let's use the same example from other post. Scenario Outline : Testing
supputuri
  • 13,644
  • 2
  • 21
  • 39
1
vote
1 answer

How do I Authenticate user before cucumber test?

I am trying to wrap my head around BDD using Cucumber (for feature tests) and RSpec (for Unit Tests). I am having trouble writing my first test for Cucumber. I need to authenticate first, but don't know how. Given(/^A logged in user$/) do visit…
Sebhastien
  • 97
  • 9