Questions tagged [bdd]

Behavior driven development (or BDD) is an agile software development technique that encourages collaboration between developers, QA and non-technical or business participants in a software project.

Filter by
Sorted by
Tagged with
1 vote
1 answer
95 views

Writing behavioural features/scenarios for application with many proccesses and sections

I'm trying to start automation on the web application that I'm currently manually testing. I was suggested to do it using BDD, so I started reseaching about it, and as I started writing my first ...
0 votes
1 answer
337 views

How to reset app between tests in WDIO?

I'm currently trying to get WebDriverIO working with Appium and Mocha (BDD) towards an Android device. Previously when I've worked with Mocha the behavior has been that testcases are isolated from ...
0 votes
2 answers
2k views

How can I store a value as global variable from an API response and pass it to another API as parameter in Cucumber feature file using REST assured

I am designing automation scripts using the Cucumber BDD framework for REST APIs using RestAssured. I have one API which generates the "Token" and then there is another API for order ...
1 vote
11 answers
45k views

cucumber java.lang.IllegalArgumentException: Not a file or directory:

I'm new to cucumber. I have created a cucumber project but cannot seem to run the project. Every time I do, I get an error: java.lang.IllegalArgumentException: Not a file or directory: Here is how my ...
0 votes
1 answer
240 views

Can't walk dependency graph: Cannot find module '../../support/pageObjects/TeamPage

It is the first time I am running a specific BDD cypress test and I got the following Error: Can't walk dependency graph: Cannot find module '../../support/pageObjects/TeamPage' from 'D:\Repos\vjtrck\...
0 votes
0 answers
22 views

Auto suggestions missing for built in locators like goto, click, fill in Playwright Javascript

I am doing playwright java script automation using POM cucumber BDD framework. I initiated page object in Hooks file. If I want to access that page object in another methods in the same file it is not ...
0 votes
0 answers
23 views

Course suggestion for BDD Framework using POM and Python (Selenium Automation)

I tried to find an automation course that includes bdd framework with pom and Pyhton but I am not able to find any course regarding can you help me to find a link of such course
2 votes
1 answer
82 views

In a BDD test, should Given set a state and verify it?

Okay, so I'm writing some BDD tests for a REST API using pytest-bdd. Let's suppose I have endpoints A, B, C and D. Normally, when someone uses this API, a request is first done to endpoint A, then if ...
2 votes
2 answers
66 views

BDD Given - How do you set the starting page?

Given user is currently at Login page With the Given above it would be invalid if I include the actual navigation to login page in the step definition simply because navigating to a page is an action ...
0 votes
0 answers
24 views

Design of shared Acceptance Tests steps for different test frameworks and languages

We have the following setup: Multiple client applications containing UI E2E tests written in different programming languages (java, c#, swift ...). All those client applications have basically same ...
-1 votes
1 answer
146 views

Page Object Model for large projects with Behave?

I have an end-to-end test project done in pure Selenium implementing Page Object Model. The thing is, I'm dabbling in Behave to add specificity to test cases based on business requirements. I would ...
1 vote
3 answers
17k views

How to fix cucumber step does not have matching glue code?

The cucumber feature file has all steps highlighted in yellow and warning is shown as step does not have matching glue code, When I try to run the project as maven test, I am getting null pointer ...
0 votes
0 answers
683 views

How to pass dynamically JSON test data file to json spec.js file to get data in Cypress + Cucumber?

I want to run same test for the same web page for different combinations. Therefore I'm planning to created different scenarios in same feature file or different files. I have already tried passing ...
2 votes
1 answer
4k views

BDD specflow Error: "Ambiguous Step Definition Found For Step

I'm getting this error: Ambiguous Step Definition Found For Step.... on running my Specflow Test. The code is for the client, that I'm working for, thus I'm not permitted to provide code sample. ...
5 votes
2 answers
421 views

BDD living documentation for Product Owners

We have been using BDD in our team for over a year now. The jobs, that run our tests generate a published report in business language, that anyone is available to read. We find these very useful ...
4 votes
1 answer
180 views

How to test baby alarm

We have a Computer Science project consisting of a baby alarm (a sender and a receiver), so when the baby is crying or a loud sound is perceived, an alert is sent to the parent. I'm interested in how ...
-1 votes
1 answer
2k views

can we prioritize test scenario in cucumber feature file during execution?

Login.feature Scenario: log in using valid credential Scenario: log in using invalid credential How can i execute second scenario first
0 votes
1 answer
53 views

One Tests or Multiple Separate Test Automation BDD

How the system works (UI) Registration Form > Redirect to Another Page with Products (based on the submitted in the registration form) (backend) API will check the validity > Valid or not it ...
2 votes
2 answers
372 views

Gherkin: When is appropriate to use the 'background'?

My colleague and I are having a debate about when its appropriate to use the 'background' keyword. the test scenario is to confirm that the correct country codes appear when you enter a telephone ...
1 vote
2 answers
1k views

What is the difference between BDD automation framework and Keyword driven automation framework?

I am using the Cucumber BDD framework for test automation. I have read articles on keyword-driven which state that keywords such as sign_in are exposed to nonprogrammers and the implementation is ...
2 votes
5 answers
164 views

How to repeatedly run tests which add the same user to the system

I have the following Gherkin: Scenario: A user can register to the application Given Carlos is not a registered user When Carlos registers on to the application Then he gets registered My ...
5 votes
1 answer
5k views

Cucumber - How to run background only once

Using Cucumber with Javascript and Selenium I have the following Gherking file: Feature: Login Background: Given database is filled with these emails and passwords. | tobias@...
3 votes
4 answers
156 views

Can TDD be a tester task?

I'm working in a team developing a web application frontend (using Angular) and backend (using Java). The manager and the team asked me to be in charge of doing TDD (since I am a test automation ...
2 votes
1 answer
117 views

Is Cucumber Scenario equivalent to a Java Class?

@Add User Scenario: Add a new User profile in the System Given user is on the Add User profile page Then Add a new user profile in the system Then verify that user has been added successfully Now, ...
4 votes
6 answers
4k views

Cucumber : Is it necessary to create multiple step defination class for single feature with multiple scenarios?

I have created one feature file which has 4 scenarios. Do I need to create 4 step definitions or only 1? If 1 then is it ok to have multiple @Given, @When and @Then in one step definition?
1 vote
2 answers
10k views

WARNING: Passing multiple tags through @CucumberOptions is deprecated. Please use a single tag expressions?

I tried to run a Cucumber test with multiple tags. But got this error. I am using Cucumber version 5.7.0. How can i run multiple tags now? import org.junit.runner.RunWith; import io.cucumber....
1 vote
3 answers
125 views

Tests that cannot be automatable in BDD model but can be automatable in TDD model

I have been to a interview. The interviewer said they were using BDD model in their project. He asked me this question. Define some Tests that cannot be automatable in BDD model but can be ...
0 votes
1 answer
8k views

Problem with finding element with Selenium and Xpath

I have a problem that is very strange for me because the code that I wrote, I am quite sure should work! Config Details Chrome version: 80.0.3987.132 ChromeDrivers version: same as ...
1 vote
2 answers
1k views

Specflow Cucumber BDD - Only log in once on test run not on every scenario

We have a Cucumber BDD test project using C# Specflow. The application is browser based tested using Selenium WebDriver automation framework. There are a number of feature files with scenarios: ...
1 vote
2 answers
185 views

How to introduce BDD to SAFe?

There have been some criticisms of SAFe (Scaled Agile Framework) in this post, including: I think SAFe is not Agile at all and [the business is] not understanding how TDD and BDD work with SAFe's ...
1 vote
2 answers
693 views

Which runner to use with Specflow Cucumber BDD: Specflow Runner, Nunit, Xunit

I have a Specflow Selenium BDD automation solution in C# using Visual Studio and want to start scheduling some automation runs based on tags and possibly features. I've only used Nunit as a test ...
-1 votes
1 answer
122 views

BDD in testing how do you organize your steps?

As the title says I'm trying to implement my tests with BDD but I'm unsure how to structure it correctly. I have a separate folder where I keep my steps. I kinda want it to be one large file because ...
3 votes
6 answers
374 views

Will writing unit tests block developers from coding?

We are about to implement TDD in our software company and we met some serious questions. As you know, this is the TDD life cycle: Add a test Run all tests and see if the new test fails Write the ...
1 vote
1 answer
56 views

The third amigo problem when customer is unknown

BDD is a useful collaboration tool (amongst other purposes). One of the main benefits is the shared language between customers/business analysts, developers, and testers. This is facilitated by the ...
3 votes
0 answers
1k views

How can I make my solution thread safe for testNG parallel execution?

Background: For quite some time I have ran automated tests using forked JVM processes, this proved quite easy when injecting a driver object using spring, I could simply provide the following: @Bean(...
0 votes
2 answers
1k views

In Gherkin files, should I repeat the steps in the previous scenario if my following scenario depends on it?

I have read about the Cardinal Rule of BDD from various places when writing Gherkin files. In many of these examples, they have the following scenarios in a feature file: Feature: Google Searching ...
4 votes
5 answers
226 views

Tie/Wrap a BDD framework around any testing tool

What would be the additional benefits of wrapping a bdd(behavior development design) framework around a proprietary test tool besides the natural language aspect of the test steps? Any suggestions ...
3 votes
2 answers
312 views

API Testing with Specflow BDD Selenium?

I'm developing a BDD test automation solution with C# using Specflow (Cucumber) with tests written as plain text Gherkins. I am currently writing a regression test suite amongst others. When ...
2 votes
0 answers
95 views

Outside or within remit - should a BDD scenario be created for this user request

Given the following overarching purpose (mission statement) for an application: In order to help keep a healthy and refreshing sleep regime, or in order to limit computer-related addictive behaviours,...
2 votes
0 answers
46 views

JQuery Not working after updating NUNIT to 3.7

I have used to find an element using jQuery select0r. This is how am trying to find out the element. var linkDom = new DomElement(DomElementType.JQuerySelector, string.Format("{0} a:icontains(\"{1}\")...
1 vote
1 answer
1k views

Is there any posibillity to run test in specific order with pytest bdd

For mobile testing automation I'm using appium, pytest-bdd and allure. Application has multiple functions. To use it user must be logged in. Process to test is next: Scenario to authenticate - 2 ...
2 votes
2 answers
3k views

Specflow step is not bound even though the underlying step definitions have been implemented

Hello, the step has not been bound (hence, colour purple), even though the underlying step defintions have been implemented. In the screen shot, I clicked on "Ok". V/Studio takes me to the screen in ...
0 votes
1 answer
137 views

In Visual Studio 2019, The Name Of The Scenario In Test Explorer Is Different From The Test That I Want To Run

The test scenario in Test Explorer is different from what I have in my V/S Project. I have tried re-starting Test Explorer to no effect. Thanks !
3 votes
3 answers
100 views

Should scenarios be short or complete?

Assuming the following scenario: Scenario: A not logged in user must be able to register Given a non-logged in user When filling the registration form with full name Pepe Roni, email peperono@...
3 votes
1 answer
373 views

BDD Test Plans: Should features be the same User Stories?

So I'm somewhat new to the BDD world. I've been using Cucumber a little bit for automated testing, but I'm unable to automate everything due to general manpower/time restrictions. However, as I write ...
4 votes
1 answer
326 views

BDD Acceptance Tests feel....short?

So I'm newly adapted to BDD and have been using Cucumber for Test Automation, but I also use the "Gherkin" style for writing acceptance tests (that I will hopefully be able to automate in the future, ...
-3 votes
1 answer
64 views

How can i use driver.findelement for All Steps [duplicate]

I need to call google in a test case and with google open enter the information in the fields. Take a look at my code: import cucumber.api.PendingException; import cucumber.api.java.es.Dado; import ...
1 vote
1 answer
436 views

How do I make my variables available to all steps of my tests

I'm using data faker and I would like to know how to make my variables available in all steps of my test. I wanted to leave all elements mapped in the initial step, or be given WebDriver driver = ...
0 votes
2 answers
60 views

Writing Better Stubs To Local Behaviour Testing

I have recently faced an embarrassing bug in PPE and want to improve my testing strategy so that I can mitigate such bugs in future during local testing itself. I have an API that interacts with a ...
0 votes
2 answers
276 views

JBehave - large number of steps in a scenario, due to preconditions and pre-steps

I'm having a scenario which consists of around 500 steps. About 490 steps out of the it are preconditions and steps that needs to be done, in order to come to a state where the actual acceptance (...