Questions tagged [atdd]

Acceptance Test Driven Development (ATDD)

Acceptance Test-Driven Development (ATDD or A-TDD) is a collaborative approach to defining requirements and business-oriented functional tests for software products based on capturing and illustrating requirements using realistic examples instead of abstract statements. It is applied in the context of Agile software development methods, in particular Behavior driven development.

This approach is particularly successful for managing requirements and functional tests on large-scale projects of significant domain and organisational complexity.

Acceptance Test-Driven Development is also known as: Specification by example, Example-driven development, Executable requirements, Agile Acceptance Testing.

58 questions
6
votes
1 answer

Is there any After keyword is available like Background for running cucumber steps

I know Background keyword is available for running a common steps before running each scenario. Likewise is there anything like "After" keyword is available for the commons steps after each scenario, not the logical steps in java code like after…
mmar
  • 1,840
  • 6
  • 28
  • 41
5
votes
2 answers

When doing BDD, must I first TDD each piece of code needed to make an acceptance test pass?

I've been given a kata to work on over the weekend. Before starting it I really just wanted to gather some thoughts. I'm not looking for the solution, just some ideas on the best approach/practice. From the conversation I had it would seem that I…
Exitos
  • 29,230
  • 38
  • 123
  • 178
3
votes
3 answers

how to summarise and navigate BDD stories when you have so many?

I have many BDD stories/scenarios (450+ and rising) that I have inherited for an existing system: more info. The stories are organised using file system folders: C:\specifications | + myproject | |- admin stories | |-…
Chris Snow
  • 23,813
  • 35
  • 144
  • 309
2
votes
0 answers

React Native Acceptance Testing

I have an application with react-native and i need build a valid .ipa or .app for iOS to execute acceptance test with appium and node. At the moment i use the react-native run-ios --configuration Release command but in the continuous integration…
Toni Chaz
  • 651
  • 11
  • 22
2
votes
3 answers

How specific should my acceptance test example be?

I'm new to Gherkin / ATDD / BDD. I'm drafting the following acceptance test: Given a user is waiting for an operation to complete And the operation is % complete When seconds elapse Then a progress indicator should be…
Tony D
  • 266
  • 2
  • 15
2
votes
2 answers

Applying BDD testing to batch scenarios?

I'm trying to apply BDD practices to my organization. I work in a bank where the nightly batch job is a huge orchestration multi-system flow of batch jobs running and passing data between one another. During our tests, interactive online tests…
feicipet
  • 934
  • 2
  • 8
  • 21
2
votes
2 answers

Is there an Acceptance Test management approach that can live with the code in git?

We are moving to an Acceptance Test Driven Development approach for defining features. It seems to be working well, but we're starting to run into issues with test management. At the moment, we use SharePoint/Excel to track the acceptance tests.…
Erick T
  • 7,009
  • 9
  • 50
  • 85
2
votes
3 answers

TDD and "honesty" of test

I have a concern with "honesty" of test when doing TDD. TDD is Write red test Write just enough code to make it green Refactor and let the test green So far so good. Now here is an example of applying the principle above, such kind of example…
bdavidxyz
  • 2,492
  • 1
  • 20
  • 40
2
votes
2 answers

RobotFramework: Maximum limit of started keywords exceeded

I'm new to RobotFramework and I'm trying to do a simple test. Print an "Hello world" using Log keyword and get a value from a java class (I'm using jybot on Ride): *** Settings *** Library robot.MyTest *** Test Cases *** Test1 Log …
bsferreira
  • 1,189
  • 5
  • 14
  • 27
1
vote
1 answer

How to get JSON output with Karate & Junit5?

I am using com.intuit.karate.junit5.Karate and it is generating the HTML report only but I would like to have JSON output. I looked at the code however it is by default generating the HTML output only by calling Engine.saveResultHtml() method. May…
ernitingoel
  • 621
  • 2
  • 9
  • 24
1
vote
2 answers

Is there a way to configure Robot Framework so the execution is not stopped by a failure

I'm aware of the Run Keyword and Continue on Failure / Run Keyword And Ignore Error / Run keyword and return status Builtin keywords but I have a very wide set of test cases that should not be stopped for any reason on a specific scenario and I was…
1
vote
3 answers

Redirect URL test using Cucumber Protractor and Typescript

The last step in the code fails with Assertion error, since the actual value remains LoginPage, I guess because the step complete before the browser is actually redirected to HomePage. I tried using browser.sleep(10000) and browser.wait(), but they…
Himalay Majumdar
  • 3,883
  • 14
  • 65
  • 94
1
vote
1 answer

How to count tags on running scenarios in Ruby Cucumber?

I've a feature file with multiple scenarios and different tags for each of the scenarios. I'm running my Cucumber test using the rake command with a specific tag and am creating a custom HTML report. The custom HTML report is created in a After…
Annette
  • 214
  • 1
  • 3
  • 16
1
vote
2 answers

What is the value add of BDD?

I am now working on a project where we are using cucumber-jvm to drive acceptance tests. On previous projects I would create internal DSLs in groovy or scala to drive acceptance tests. These DSLs would be fairly simple to use such that even a…
murungu
  • 2,090
  • 4
  • 21
  • 45
1
vote
1 answer

Cucumber: tag scenario on the fly

I am wondering if anyone's ever tried tagging scenarios on the fly. Here's the use case: We have hundreds of scenarios for the regression tests, and some of the tests might fail because the API is down (which usually means that the next time it…
Angel
  • 11
  • 3
1
2 3 4