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
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\...
Ingridd Brito's user avatar
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 ...
Meera Yogesh's user avatar
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
Hassan Bari's user avatar
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 ...
Rejected-Potato-27's user avatar
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 ...
joliver's user avatar
  • 23
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 ...
trajgon123's user avatar
-1 votes
1 answer
145 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 ...
VSacudato's user avatar
0 votes
0 answers
678 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 ...
Syrus's user avatar
  • 1,197
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 ...
iAutomate's user avatar
  • 359
-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
Qa Test's user avatar
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 ...
wizaiz's user avatar
  • 3
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 ...
fypnlp's user avatar
  • 437
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 ...
Efthymios Kalyviotis's user avatar
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 ...
USER_1234's user avatar
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, ...
user50752's user avatar
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 ...
WalterM's user avatar
  • 11
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 ...
JKC's user avatar
  • 35
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 ...
Jagadish Dabbiru's user avatar
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 ...
m_finn's user avatar
  • 57
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: ...
m_finn's user avatar
  • 57
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 ...
Anjani Kumar's user avatar
-1 votes
1 answer
121 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 ...
user47032's user avatar
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 ...
Mate Mrše's user avatar
  • 4,119
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 ...
Mate Mrše's user avatar
  • 4,119
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 ...
xenon's user avatar
  • 151
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....
marker234's user avatar
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 ...
m_finn's user avatar
  • 57
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@...
Hola Soy Edu Feliz Navidad's user avatar
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 ...
ppaweluz's user avatar
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 ...
David's user avatar
  • 45
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 !
OA345's user avatar
  • 545
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 ...
OA345's user avatar
  • 545
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@...
Hola Soy Edu Feliz Navidad's user avatar
-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 ...
Rebeka Montana's user avatar
1 vote
1 answer
435 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 = ...
Rebeka Montana's user avatar
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 ...
Prashant Pandey's user avatar
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 (...
Aki T's user avatar
  • 121
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 ...
agvera's user avatar
  • 131
5 votes
2 answers
720 views

Actual Steps in Step Definition or Call Test Cases in Step Definition, What's the Best Practice?

I'm currently working on a Cucumber project using Katalon Studio, and I'm not sure if... I need to directly write the test items on Step Definition file OR Should I call the test cases in Step ...
agvera's user avatar
  • 131
0 votes
4 answers
194 views

Customers can almost never submit or monitor bug reports or otherwise communicate with development, even indirectly. Why?

This is "a site for software quality control experts..." Why do most software-based companies seem to have a wall to prevent customers from submitting or monitoring bug reports, via support or ...
user1521620's user avatar
1 vote
1 answer
1k views

Can cucumber tag a single step?

The application that I'm testing receives input from an outside sensor, but sensor data is unavailable on the test environment. Therefore, I use mock data. The problem is, mock data requires some more ...
Mate Mrše's user avatar
  • 4,119
1 vote
1 answer
164 views

Code coverage in react webapp

I'm a little bit stuck with a task that I have been researching. It's about code coverage in a react webapp. I implemented a few unit tests using jest + enzyme. also some functional test, using ...
Diego Lamas's user avatar
1 vote
1 answer
384 views

I Wanted to know if we can use Katalon for Cucumber BDD frame work but, with Java and not Groovy scripts?

We are using Katalon, but I always wanted to use Cucumber BDD framework. I have he seen that Katalon 5.7 started incorporating Cucumber BDD framework. But, I am not sure how to use it for Java as ...
Yasaswy Sathuluri's user avatar
2 votes
1 answer
80 views

BDD features for dependent applications

Say, if an application has both admin console(admin user only) and user consoles(end user) and a course of action in admin console will be reflected in user console. So, even though the goal is ...
sake's user avatar
  • 31
1 vote
1 answer
48 views

BDD Feature Files guidelines

I'm sure every story cannot be considered as a feature and a feature can be mapped to multiple stories. Sometimes big stories are split into multiple stories for easy reference. Are there any ...
sake's user avatar
  • 31
2 votes
3 answers
304 views

Behavioural Gherkin Steps requiring complex Step Definitions when Automating

I'm currently part of a team that is trying to reinforce BDD in our tests and automation. Our tests up to this point were procedural and we want to move towards behavioural steps. An example of our ...
JordiLaForge's user avatar
0 votes
1 answer
117 views

How do I write a gherkin specification to check a large list of values? [closed]

I'm working to write a specification with gherkin (for the first time) for a REST API which will return a long list of paged items (1000 items per page). I'm curious if there's a good way in gherkin ...
TheTFo's user avatar
  • 103
0 votes
1 answer
61 views

How much to separate functional tests?

For example I have a simple on-line shop. The user can add a product with and without tags. I would like to test it functionally. My first test: Generate sample data to database (User) User login ...
limon's user avatar
  • 1
3 votes
4 answers
2k views

How to re-run prior Cucumber Step based on boolean assertion in a later step?

I'm learning to use Cucumber and have a Scenario as follows: Given a standard party And a flight from "UK" to "Europe" When I search And I receive search results Then I can book my holiday In Step ...
Steerpike's user avatar
  • 383
3 votes
7 answers
747 views

Using BDD to describe complex interactions in a state machine

How would you use BDD to describe complex interactions with a state machine? For example consider this scenario: User enters input into the system. The system transitions into state A. The user ...
urig's user avatar
  • 131