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

When to use BDD and when just unittests?

I have a task to write tests for future Django Channels+DRF project, don't ask why (we only have swagger documentation for now). So the tests have to test the user use cases (like scenario that may be complex). I have researched about that and found…
1
vote
1 answer

Is there any way to run perticular scenario in karate more than one time if specific condition met true?

I want to run my perticular scenario or feature file more than one time. Let's say if user enter 5 then i want my url to be hit 5 times. is it possible in karate? Any help would be appreciated
Yash
  • 121
  • 7
1
vote
1 answer

Every time a value of Scenario Outlines is executed, the browser loads again

When I provide the invalid phone three times, each time the value is called the Browser is loaded. I used Background but I haven't been able to do it yet. Thank You Feature file: Functionality: Validate the creation of a new Gmail…
Tadeu
  • 67
  • 6
1
vote
1 answer

How to manage response data of steps implemented in Gherkin using QAF API?

Looking for ways to carry over data from previous step to subsequent using QAF. Is there an option for such behavior?
user3812972
  • 77
  • 1
  • 6
1
vote
0 answers

How to append into txt file through karate.write(value,file.txt) function?

karate.write(value, file.txt) overwrite the previous content whenever called. I want to append values every time i call to karate.write function. In my code i need to call this function 10 times at different points. Is there any way to achieve…
Yash
  • 121
  • 7
1
vote
1 answer

How to utilize QAF BDD and Gherkin with testng features

I've successfully added QAF BDD API with required configuration to run feature files with java steps. My current project utilizes TestNG listeners and annotations to setup Base classes, as well as preset other required data for script execution.…
user3812972
  • 77
  • 1
  • 6
1
vote
0 answers

Execute feature file (Cucumber/SpecFlow) with parameters?

So i want to execute the same feature file (in SpecFlow) along with different parameters... Lets say we 5 calculators and we have 10 test that test the basic abilities of calculator; So i want to execute the tests and just change the calculator…
1
vote
1 answer

How to describe expected error messages in BDD / Gherkin

We are just getting started with BDD in our company, and we are currently trying to write our first features. We have created something like the following: Feature: There can only be one It is important that there is only one Highlander in the…
user1691896
  • 107
  • 7
1
vote
1 answer

How to create different suites and define their order of execution in Godog?

I want to create different test suites for execution of my test cases. The main idea is that I want to load some sample data into database using a feature file in a single suite. After this suite is completed I want to execute different suite…
Shubham
  • 21
  • 1
  • 4
1
vote
3 answers

How much data should be given in a cucumber feature file?

I'm trying to write some Gherkin feature files in order to do BDD acceptance testing using SpecFlow. The system I'm trying to test consists of multiple RESTful APIs - system has a microservice architecture. In a scenario, I need to be certain that…
Geekmard
  • 166
  • 1
  • 3
  • 10
1
vote
2 answers

Is there a way to execute multiple category tag via NUnit.ConsoleRunner.3.9.0

I can execute single test category tag (e.g: --where "cat=sanity") successfully. However, I need to execute multiple 'cat' tag via NUnit.ConsoleRunner.3.9.0. e.g: something like --where "cat=sanity" and "cat=smoke" simultaneously.
1
vote
2 answers

Passing values to Specflow Scenario methods from feature file

I have a custom tag defined in my Hook.cs file like [BeforeScenario("AfterUpgradeTag")] public void BeforeScenarioAfterUpgrade() { // Code execution here } What I want to do is I want to change its method definition like …
SandyRocks
  • 269
  • 4
  • 15
1
vote
1 answer

EasyB stories invoked by TestNG?

just wondering if it's possible or if anyone has tried integrating Easyb (BDD) with TestNG in a Maven project. Basically I need to call the Easyb stories from the testng.xml or having something that makes call TestNG tests and Easyb stories…
sebarmeli
  • 17,949
  • 7
  • 35
  • 40
1
vote
1 answer

Unable to run my configuration file in jbehave

I have written a simple code in java which will open the chrome browser and verify its title. Here I have used Jbehave(BDD) concept to achieve it. The problem which I'm facing is that I'm not able to run my config file. This is my .story…
1
vote
1 answer

Building a report against TFS showing number of unit tests linked to a requirement?

Is there a way to build a report using the MS Team Foundation Server API or other means so that I can count the number of unit tests which have been written against a requirement? ( or user story ) Approaches under consideration: (1) Create an…
Michael Rosario
  • 838
  • 1
  • 11
  • 26