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
1answer
21 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 ...
1
vote
1answer
38 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 ...
0
votes
2answers
34 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 ...
0
votes
0answers
43 views

How can i run my Cucumber project as a Maven Test as the Build passed but it shows Tests run: 0?

I have created a Cucumber project, which has multiple feature files, Step definition classes and one TestRunner.java class. Now, that project has a Maven project structure and i want to run it as a "...
1
vote
1answer
109 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....
0
votes
0answers
50 views

How can we use the “TableTransfomer” Method to read data from “DataTable” in Cucumber?

I am stuck with using a TableTransfomer Class to convert Datatable into desired domain object. I am following some examples from the web, but have completely messed up my code. I just want Cucumber ...
3
votes
2answers
66 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 ...
3
votes
0answers
301 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@...
0
votes
1answer
310 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 ...
0
votes
1answer
244 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 ...
0
votes
1answer
27 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 !
2
votes
2answers
41 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 ...
3
votes
3answers
92 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
1answer
45 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
1answer
78 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
2answers
52 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
2answers
60 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 (...
2
votes
1answer
49 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 ...
5
votes
2answers
353 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 ...
0
votes
4answers
103 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 ...
0
votes
1answer
207 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 ...
1
vote
1answer
78 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 ...
1
vote
1answer
343 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 ...
2
votes
1answer
54 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 ...
1
vote
1answer
36 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 ...
2
votes
3answers
107 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 ...
0
votes
1answer
48 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 ...
0
votes
1answer
47 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 ...
3
votes
4answers
936 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 ...
3
votes
7answers
310 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 ...
0
votes
3answers
10k views

How can I pass parameter in xpath?

I am using Java, Selenium Webdriver and Cucumber for my automation.In my feature file I have below statement : And add a room '<x>' The XML code for selecting rooms is shown in below image : ...
0
votes
1answer
72 views

Organisation of Acceptance Tests(Specflow/Cucumber)

Now I'm starting to work more and more with BDD techniques(spec flow and Cucumber), I’m starting to think about the organisation of the projects/solutions I create and ensuring that I future proof it ...
3
votes
5answers
2k 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?
4
votes
3answers
9k views

What are the pros & cons of BDD testing?

I want to build up automation tests for the software I'm working on as a QA. I don't have much experience in that field, I'm still freshly graduated and I don't know all the good habits behind ...
2
votes
2answers
282 views

Benefits of BDD tools such as SpecFlow for tech debt in automation

We are starting to automate our manual regression suites using Selenium Webdriver and NUnit. The tests we will be automating are quite detailed in terms of steps and expected results however I was ...
1
vote
3answers
539 views

Jquery: How can I click a button by selecting text inside a button with no id or span

<div class="row" > <button type="submit" class="cl-button cl-button--no cl-column">No</button> <div class="row" > <button type="submit" class="cl-button cl-column">Yes<...
0
votes
1answer
927 views

No Option To “Generate Step Definitions” In Specflow

I do not see the option to "generate step definitions" in Specflow. I have installed the Specflow add-on by going to: Tools >> Extensions And Updates I have also added NUnit3 Test Adapter. ...
4
votes
1answer
5k views

Can a scenario have multiple example tables?

I would like to write a gherkin scenario that specifies a table of parameters but represents a test for every combination of values in the table. For example: Given I visit <site> When I enter ...
3
votes
0answers
747 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
2answers
199 views

BDD GUI Automation

I've started a new role in my life. I was a front end web developer, but I've now been moved to testing web software, or more so, automating the testing of the software. I believe I am to pursue a BDD ...
3
votes
3answers
667 views

Where to state test data in Cucumber

I'm struggling to understand the best place to place test data in Cucumber scenarios. My scenario reads like the following: Scenario: Register member for first time Given I have navigated to new ...
0
votes
3answers
568 views

Cucumber feature file steps not requiring a step def

This seems like an obvious question to me but I cant seem to find an answer on it anywhere which is making me think its a practice that I shouldn't be doing. I have a feature file step which is there ...
1
vote
1answer
2k views

BDD specflow Error: "Ambiguous Step Definition Found For Step

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

Cucumber Step definition design

Newbie here so hoping you can bear with me! Although new to automation in my new job, I have done a fair bit of reading on it. But I find myself thrown in the deep end here and have the task of ...
1
vote
1answer
229 views

Should I automate UI testing by 'clean' Selenium or use BDD framework?

I've automated E2E UI tests for the project, where I work as a Software Tester. I used 'clean' Selenium Webdriver, and it works. But I'm wondering if it would be better to use a framework such as ...
2
votes
1answer
4k views

driver.quit() and driver.close() methods are not working inside @AfterTest method

I'm using Selenium using both Java and Cucumber. And I'm curious when I'm using driver.quit() or driver.close() under @AfterTest method, browser won't closed and when I'm using it inside my test step ...
4
votes
5answers
249 views

How do I build a personal project big enough to learn from automated testing it? [closed]

It doesn't come to me, in my head, how I should build a project big enough, like abig software, so I can test it. I've been reading about testing and I wanna to learn it from zero. The language that I ...
2
votes
0answers
31 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}\")...
3
votes
1answer
1k views

Cucumber with Protractor - Multiple Features Not Executed Properly

I have a pretty small POM based project for learning Cucumber with Protractor. I am using TypeScript. I am trying to perform pretty basic actions (clicking on button, clicking on a menu item) on ...
3
votes
2answers
432 views

BDD / Cucumber - what level of testing can I use it with?

In the past I've used BDD - Cucumber with the Gherkin syntax - for UAT (User Acceptance Testing). Is this the main area of testing for using Cucumber ? My organization also has the following areas of ...