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

Specflow selenium webdriver, drag and drop not working

I tried to implement drag and drop functionality of html elements with all following ways. But none of them work for me. This is .net framework project with latest specflow version. 1 way var actions = new Actions(Context.WebDriver); …
Janith Widarshana
  • 3,213
  • 9
  • 51
  • 73
1
vote
1 answer

What is the "include" folder used for in a Katalon Studio project

Similarly to what is being asked in this question, which is yet without answer, I'm struggling to understand how should I properly use folders in a Katalon Studio project. In particular, so far I wasn't able to trigger creation of any file in the…
Daemon Painter
  • 3,208
  • 3
  • 29
  • 44
1
vote
1 answer

How can I inspect element in to div with jsname?

I'm having trouble inspecting elements inside a DIV; I don't want to use xpath. // Assert.assertEquals("Digite uma…
Tadeu
  • 67
  • 6
1
vote
1 answer

Is there a Python headless browser suitable for Behave without using Selenium or a real browser

I've a history in the PHP/Symfony world, so I am familiar with using Behat (like Behave) without having to use a full Selenium setup. To achieve this they use a GoutteDriver (written in PHP) instead of driving a real web browser like Chrome or…
Oliver Lorton
  • 709
  • 1
  • 6
  • 21
1
vote
2 answers

Rails cucumber uninitialized constant User (NameError)

I'm starting with BDD (cucumber + capybara + selenium chromedriver) and TDD (rspec) with factory_bot and I'm getting an error on cucumber features - step_definitions. uninitialized constant User (NameError) With TDD, everything is ok, the factory…
Juny
  • 191
  • 1
  • 1
  • 15
1
vote
1 answer

Empty pool of VM for setup Capabilities

Implemented the Zalenium in my protractor code. Live and dashboard view is popping out but when I tried to execute from zalenium it throwing the below error. ** Code**
1
vote
1 answer

Failed to save cucumber test results to Json file in server

When I try to execute the Protractor Cucumber framework in Jenkins under the server it successfully generates the report with the below error. When I execute the same code in Jenkins under the local machine the report is generated successfully…
1
vote
1 answer

how to add whitespace before and after in feature file + protractor + cucumber

I need to add white space before and after my input value in feature file for example | firstName | | test | the value retrieved from html is SPACEtestSPACE - note SPACE is actual space. I tried giving it in single quotes like | ' test ' | but it…
1
vote
1 answer

SilverStripe running tests using Behat throwing "No behat.yml found for module silverstripe/framework" error

I am working on a SilverStripe project. I am trying to write Behavioural Tests using Behat for my projects. But I am getting an error when I run the tests. Following is what I have done so far. First I install the module using composer composer…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
1
vote
0 answers

How to execute two Cucumber test runners sequentially

We are using Cucumber + Selenium framework. I have implemented the rerun plugin which captures the failed cases. Now to execute those failed ones I need to have one extra test runner where I can pass the failed cases path which was created using…
1
vote
3 answers

Pytest BDD : E fixture 'test_login' not found

Hi need some help on how to fixed the error messages E fixture 'test_login' not found > available fixtures: cache, capfd, capfdbinary, caplog, capsys, capsysbinary, doctest_namespace, metadata, monkeypatch, pytestbdd_given_User logged…
rkevx21
  • 2,441
  • 5
  • 19
  • 40
1
vote
1 answer

Isolating Behaviour In BDDs

Suppose I have a program that does three things in succession: Task 1 Task 2 Task 3 Now suppose I want to write BDDs for Task 2. Let us say when it fails. Now Task 2 is performed only after Task 1 succeeds. But Task 1 itself can succeed in many…
Prashant Pandey
  • 4,332
  • 3
  • 26
  • 44
1
vote
1 answer

How to allow multiple step definitions match

I am using cucumber for BDD testing and the feature file looks as follows: Feature: Sing Up Scenario: User tries to sign up without interests Given the interests are empty When user presses on sign up Then it should show "The…
softshipper
  • 32,463
  • 51
  • 192
  • 400
1
vote
1 answer

Define a reusable variable and use it inside story files in JBehave

Given a stock threshold of 10.0 When stock threshold is set to 10.0 Then threshold result should be 10.0 In above steps, instead of the constant value 10.0, I'd like to use a predefined variable. Like, Given a stock threshold of…
Aki T
  • 612
  • 2
  • 7
  • 17
1
vote
1 answer

@Given or @When annotation of cucumber is throwing errors related spring boot configuration

I am writing cucumber BDD test cases . All the dependencies of cucumber are included in pom.xml io.cucumber cucumber-java ${cucumber.version}
Tanmay Patil
  • 659
  • 1
  • 4
  • 21