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

How to get the coverage of behave testing?

I am using behave for BDD and am looking to get code coverage of behave. Here is my command I tried: coverage run --source='/app/code' -m behave The final output I am getting here is: Coverage.py warning: No data was collected.…
RK Vats
  • 21
  • 3
1
vote
1 answer

QAF Dashboard.html is empty

I have downloaded the QAF Maven project and imported into Eclipse. I have created BDD test case for one of the RESTFull service and I am able to run it as TestNG Test. I see the result folder created with the date and timestamp created under…
1
vote
2 answers

Define a keyword containing a variable within robot framework

I'm currently using robot framework for a project with Gherkin language strategy (Given When Then). My feature file is as below: *** Settings *** Documentation ... In Order to eat a dessert safely, ... As a king ... I want to not take a lethal…
1
vote
1 answer

Is there a way in squish to use plural and singular in same BDD step?

I am trying to implement a BDD step which can be use if the step is referring to singular or plural ex: Then I should see the name "John" is displayed but also I want to use the same step if I have more then one name Then I should see the names…
1
vote
2 answers

How to represent "And" in Python behave step definition

For example i have following scenario in a feature file Scenario: A Scenario Given a precondition When step 1 And step 2 Then step 3 In Ruby i can write stepdefinition for above scenario as following: Given("a precondition")…
Nafeez Quraishi
  • 5,380
  • 2
  • 27
  • 34
1
vote
1 answer

How to inherit a webdriver instance from a called feature file?

I am attempting to do a POC with Karate 0.9.0.RC4's new support for UI automation. Have a feature file that validates the URL the user is on That feature file, as a background step, calls another feature file that instantiates the driver and…
1
vote
1 answer

HOOK-ERROR in after_step: TimeoutException: Message: timeout

Sometimes, when my script is run by jenkins i get an error: HOOK-ERROR in after_step: TimeoutException: Message: timeout (Session info: chrome=69.0.3497.92) (Driver info: chromedriver=2.35.528139…
1
vote
2 answers

BDD how can i write a table if I have more than one variable in Given conditions

Below id my scenario that I am trying to automate: Scenario Outline: create an invoice selecting Given following is selected And following is selected And following is selected …
vm31
  • 169
  • 1
  • 4
  • 15
1
vote
1 answer

Develop a test framework for validating responses of Soap WS with REST WS?

I have a requirement to develop a test framework using Cucumber . Requirements: There is a Soap WS already developed for an existing project few years ago There is a new REST ws developed for the same project I have to validate the responses from…
1
vote
1 answer

Multiple classes inside step definition package in cucumber

I have a cucumber framework which is catering to API as well as UI feature files. So, I have 2 feature files one for API and the other for UI. Similarly, I have created 2 classes in my step definition folder one for UI and other for API. So the…
brij
  • 331
  • 1
  • 5
  • 17
1
vote
1 answer

Is it possible to generate example table for scenario in specflow?

The main problem is that example table is too long (below the example is a mock short, my real test would be ~300 lines). Is it possible to generate these table? I have mypage30.. it would be hard to maintain it Scenario Outline: Check…
1
vote
1 answer

Gherkin syntax for windows desktop application test automation

Is there any solution, tool or framework to build a test automation project with Behavior Driven Development (BDD) approach for windows desktop application?
buurkeey
  • 369
  • 2
  • 5
  • 19
1
vote
1 answer

How do you spec out "read-only" behavior of a Model?

For example, let's say I have a Question model, that has the boolean fields answered and closed. How would I test the behavior that a Question should be read only when marked as answered using RSpec? This seems like it's the behavior of the model,…
Wayne Molina
  • 19,158
  • 26
  • 98
  • 163
1
vote
1 answer

Validate array within an array case with BDD karate

Using the karate bdd plugin for automated testing cases along with cucumber. Facing a trouble validating an api structure having an array list within an array. How to validate the valuesets array in array structure with bdd karate? { …
Valerian Pereira
  • 725
  • 1
  • 6
  • 16
1
vote
2 answers

Maximize chrome window in QAF

I am using this code, new WebDriverTestBase().getDriver().get("http://www.google.com/"); But this doesn't launch the chrome in full screen. How to maximize the chrome window in QAF?
M M C
  • 23
  • 2
1 2 3
99
100