Questions tagged [cucumber]

Cucumber is a tool for running automated acceptance tests written in a BDD (behaviour-driven development) style.

Cucumber is aimed at assisting collaboration for teams using BDD (Behaviour-Driven Development) by allowing developers, testers, and business representatives to describe the desired behaviour of the software in a business-readable domain specific language.

More information is available at the official site: https://cucumber.io/

"The Cucumber Book" is also an excellent reference: http://pragprog.com/book/hwcuc/the-cucumber-book

240 questions
4
votes
3 answers

The Usage of "Given" in Cucumber?

So im trying to get better at writing Declarative style cucumber tests that make sense, I think the hardest "Keyword" for me to properly form into a feature file is the "Given" keyword. I know "Given" is meant to set up a stage....but I feel like a…
Mercfh
  • 1,736
  • 2
  • 14
  • 27
3
votes
2 answers

@And annotation in Cucumber

I am going through some examples and some books in relation to Cucumber usage and it looks like @And annotation is never being caught by the regex. I mean it is a valid Gherkin keyword and it is being used in the scenarios but I can see no…
Eugene S
  • 429
  • 1
  • 6
  • 18
2
votes
5 answers

Where will the cucumber Then stop?

When I'm doing an end-to-end test by using cucumber, where would the testing flow stop? For example, we have several steps here: I walk into a shop I select some items I pay for them I get my receipt I walk out of the shop I walk to my car If the…
laahaa
  • 121
  • 1
2
votes
1 answer

What is a simple example of using Cucumber?

The docs at https://github.com/cucumber/cucumber/wiki/Step-Definitions are great and have tons of detail. They're a bit overwhelming for a newbie to cucumber. I just want to understand how my englishy spec will relate to the code it will execute…
Michael Durrant
  • 25,210
  • 3
  • 40
  • 112
2
votes
2 answers

Cucumber: Where do you store your Feature Files/cukes?

So i haven't used cucumber yet, but have been exploring it deeply. Right now I'm starting up a QA dept (just me right now) for a Small Web-Dev company. I've been researching the heck out of every QA thing under the planet, and i've seen cucumber…
Mercfh
  • 1,736
  • 2
  • 14
  • 27
2
votes
0 answers

Cucucmber-Jvm (Using Maven Project) + Selenium WebDriver + PageObjects + Allure Report

I am working on "Cucumber-Jvm (Using Maven Project) + Selenium WebDriver + PageObjects + Allure Report", I am able to run my script but enable to run my script and also unable generate "Allure" report. Below are the codes, feature file, pom.xml,…
Sachin
  • 510
  • 5
  • 18
0
votes
0 answers

loginPage login is not imported stuck on that point

package StepDefinations; import java.time.Duration; import org.openqa.selenium.WebDriver; import org.openqa.selenium.edge.EdgeDriver; import io.cucumber.java.en.And; import io.cucumber.java.en.Given; import io.cucumber.java.en.Then; import…
-1
votes
1 answer

Generating test run/result for manual testing from Cucumber Feature files

For my simple mobile app, I have started migrating my test cases from a Google Doc into cucumber feature files. I have yet to automate the steps, so there are all manual cases. Is there a way for me to generate a test run document/text/html from…
-1
votes
2 answers

How to run the same scenario multiple times in Selenium Cucumber?

I have not used Example/Data Table to parameterized the test data, The ask is very straight forward run the same scenario multiple times sequentially.
Niks
  • 9
  • 1
  • 3