Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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.

0
votes
1answer
20 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 ...
1
vote
4answers
85 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?
0
votes
0answers
22 views

Help automating my specflow scenario

I'm not a dev, and I don't have any experience automating the scenarios. Our Dev lead has helped me with some of the scenarios (she's now on holiday) so I would appreciate some help (if possible) in ...
3
votes
3answers
359 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
137 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
2answers
60 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
166 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
219 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 ...
1
vote
0answers
150 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
82 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 ...
0
votes
0answers
106 views

Specflow feature background in excel sheet

I would like to move my specflow feature background to excel sheet. Example of background section from my feature file: Background: Given I have following account code 'MyAccount' And I have ...
0
votes
3answers
123 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
80 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 ...
0
votes
1answer
223 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
194 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 ...
0
votes
1answer
103 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
663 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 ...
5
votes
5answers
200 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
18 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
403 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 ...
2
votes
2answers
157 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 ...
0
votes
1answer
196 views

Turn on print, stderr, or stdout by tag during test run in Behave Python

So I am trying to implement an @warn tag. The idea is this test doesn't make an assertion and fail, but instead simply prints out a warning. I see this answer here, but that only explains how to do it ...
2
votes
1answer
68 views

Best approach to Automation testing for this scenario?

I'm automating a web application and I have 2 things there : An administrator side, typically used for creating users, managing users, modifying the content etc (the list goes on) A user login side ...
0
votes
1answer
53 views

BDD precondition volatility

If there are some possible points of failure in your preconditions, is it a bad practice to put in asserts in your Given steps, or if that is unclear, should Given statements ever fail?
1
vote
1answer
65 views

Why does it take a long time to spider an application?

Is it normal to take 10mins for bdd-security to spider an application? And should the spidering be done after log in or before login? Basically we have a web application on which we need to do the ...
2
votes
1answer
173 views

feature file in behave(BDD) throws an error

I have create a feature file and step definition file, to execute by test cases using behave (BDD ), but i am facing one error, when i execute the feature file, Please find below to check by code :- ...
6
votes
2answers
237 views

Best Practice: BDD and automated GUI testing for Desktop applications

At my company we are developing a Desktop application and regression after regression we finally decided to implement the acceptance tests in addition to the unit tests. I am relying on this project ...
2
votes
1answer
54 views

How to test BDD features that require a flag set in order to run?

Hi I automated some features using a BDD Framework. When I pass a given URL, my framework should only work for certain areas not all the features due to access restrictions There is a flag set to ...
1
vote
2answers
104 views

What is the purpose of splitting a cucumber Step Definition file

As per my understanding, a single step definition file methods can be reused by steps with the same name in other feature files. then, what is the purpose of splitting a single cucumber Step ...
5
votes
1answer
61 views

Given When Then - is one 'then' per test acceptable usage?

I don't know if this has a sort review process, but here goes (direct me elsewhere if appropriate) I have written these tests, and wondered if my use of Given, When and Then was correct. I ask ...
16
votes
3answers
2k views

Screen Play vs Page Object pattern

I've recently stumbled upon Senenity/JS framework which advocates the Screen Play pattern, which was proposed as a better alternative to Page Objects. What are the key fundamental differences between ...
1
vote
2answers
73 views

Who provided BDD scenarios to be automated?

In real time project, who provides BDD scenarios (cucumber feature file) to be automated? Is it already provided by the business or QA person has to write it?
1
vote
2answers
55 views

What is the correct, conventional name for a test written via BDD

If I have a class/object/component, and I test its API directly, in complete isolation, mocking/stubbing any complex parameters on which it depends, it's called a Unit Test. If I have a whole ...
0
votes
1answer
176 views

Difference between Behave tables and Model Based testing

What is the difference between the Behave tables you can write in BDD (see python-behave) and model-based testing? Such tables seem to generate a model for your test which you can use to test your ...
4
votes
2answers
697 views

BDD & Rest API automation

When I search for BDD and Rest API automation. I get lots of examples where some user scripts a human-readable user story which shows how to use his API. This user calls it BDD. But BDD based not ...
2
votes
2answers
340 views

Importance of cucumber BDD tool [closed]

I am working in selenium with page object pattern. I know the basic concepts of cucumber. Its a bdd tool and bdd is for customer verification acceptance test. Everyone can understand the gherkin ...
1
vote
2answers
419 views

Best way to implement parameterize scenarios in Cucumber? [closed]

I found two ways of parameterize, Which one is correct from below Given Go to < url > Given Go to "url" Angular brackets or double quotes, which is the right way of using?
5
votes
2answers
158 views

Using BDD approach, am I writing unit tests properly?

We are desperately trying to adopt BDD in our company at the moment and (as usual?) there are lots of questions about the right way to do BDD now. One of my favorites is the following. So let's ...
1
vote
2answers
39 views

Origins of Behavior-Driven Development

I'm reading the book 'BDD in Action' by John Ferguson Smart. According to it, BDD draws inspiration from: TDD (write tests first) DDD (common language for business and development) ATDD (...
3
votes
2answers
421 views

Behavioral Driven Framework vs Test Driven Development

I am the only QA with 9 developers dealing with about 60 applications using different technologies. Now I needed to automate our apps. I have written some selenium scripts already but I stopped and ...
2
votes
3answers
1k views

Benefits of BDD [closed]

I'm currently working on Agile Project and we have starting to implement BDD as part of it. To do so, I need to present a slide with advantages of BDD. I can see many sites including StackOverflow has ...
1
vote
5answers
249 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 ...
3
votes
1answer
2k views

Is Parallel Testing possible in Cucumber with TestNG?

I am trying to implement Cucumber in my current project with TestNG and I need to execute my script parallely on multiple browsers. Is Parallel Testing possible in Cucumber? If Yes, Can any one ...
1
vote
1answer
354 views

How to setup Behat for Magento on Mac with MAMP?

We have a Magento shop and want BDD-tests for our system - locally and later on server side. How can I setup an Behat environment on my mac with MAMP?
4
votes
4answers
148 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 ...
1
vote
4answers
8k views

Cucumber: Multiple vs One step definitions file?

Im trying to figure out what the better way to do this is? On one hand separating your step definitions based on the different feature tests is nice for organization (or in case one breaks and you ...
0
votes
1answer
1k views

How to integrate Jbehave and TestNG?

I googled and found most of scripts were written in Jbehave with junit. But I'm trying to integrate Jbehave with testNG framework. And the following were I tried so far. Feature file: Scenario: ...
6
votes
1answer
151 views

How to Run tests in parallel with Spinach BDD framework?

Currently in our company we use Spinach as a BDD framework and test runner for our automated acceptance tests. We also use Selenium as a browser driver, Capybara as an additional layer on top of it ...
5
votes
2answers
257 views

Style of acceptance test cases? (BDD)

I've been struggling a bit when writing test cases. Our team follows a 2 week sprint, and I'm writing acceptance test cases on these user stories. I've tried the BDD format (Given/When/Then) and it ...
3
votes
1answer
230 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, ...