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

Questions tagged [cucumber]

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

0
votes
1answer
27 views

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

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
30 views

Why Cucumber repeats Java/Selenium exception text?

For example, tried to locale a web page element by ID and it was not there - why Cucumber repeats the Java output (in addition to - expected - its own scenario/feature/steps failure text) and can I ...
0
votes
1answer
46 views

Selenium is not performing Click Action on the Radio Button

Issue: I am trying to perform a click on a radio Button but it is not working it just bypass the step and perform the next step doesn't even give me any error message *Intention is to click on refund ...
0
votes
1answer
34 views

How can I create a dynamic feature file in Cucumber?

I have knowledge about static feature file and it is tough to handle for test case. I want to create dynamic feature file or dynamic content for test case in feature file.
0
votes
1answer
43 views

How to enter text into a text field nested in an iFrame?

I am using Ruby with Cucumber and attempting to build up a suite of automated tests against a dynamics 2013 system. We have a cart that is a nested into an iFrame and we are attempting to enter a ...
0
votes
0answers
39 views

Cucumber report always generate the same html output

I am using net.masterthought Cucumber reporting in my project. Regardless of how many tests I add, my report always stay the same. I believe this is because of the json file not changing. Below is the ...
1
vote
1answer
37 views

How can I bypass the mixed content error

I am getting the below error when I was trying to approve a document in a webpage Mixed Content: The page at \'https://example.com\' was loaded over HTTPS, but requested an insecure resource \'http://...
0
votes
2answers
41 views

Cucumber > Saving State up to a Step

I am using Cucumber through IntelliJ and am working on fixing a broken test. I was wondering when debugging, is there a way to save the state of the system up to a certain step in the feature file, if ...
0
votes
1answer
22 views

Cucumber Feature on executing throwing "The path to the driver executable must be set by the webdriver.chrome.driver system property;

I am Using Cucumber Selenium Framework for Test Execution. And I have set system Properties correctly because the same script was running fine but now it is throwing "The path to the driver ...
1
vote
0answers
16 views

Is it possible to have different logger paths per cucumber features or scenarios?

So I'm using selenium with cucumber and right now and run my tests sequentially, at the end of the execution I collect the log and the prints. My question is, once I start executing them in parallel, ...
0
votes
1answer
44 views

How to keep a single browser window open during multiple search for a website in the code?

I want to search for different items in a website multiple times and add the item to cart after each search and proceed to checkout after last search. Cucumber opens the new browser for every row in ...
3
votes
4answers
129 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 ...
1
vote
4answers
88 views

Katalon or Java+Junit+Cucumber to automate tests?

We are starting to automate web tests, but we don't know what is the best way to do, what is the best option to start and why? And what is the best-easy to use for automate Mobile IOS and Android?
0
votes
2answers
187 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
41 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
0answers
40 views

Runners for cucumber tests

I've reached the point now where we need to get my automated checks running as part of deployment scripts to act as regression tests. I've not done this before and I'm thinking the way I currently ...
5
votes
4answers
471 views

What is the difference between Given, When and Then annotations in Cucumber?

I do know that basically all Given, When, Then and And keywords in feature definition technically are not distinguished by Cucumber. But why does Cucumber have different annotations for the step ...
0
votes
2answers
141 views

Is there any way to validate sql data with cucumber feature file data?

I am using cucumber , Junit , Selenium Web driver and have JDBC connection I have a feature with below scenario Scenario Outline: Fill out the ATS Registration Form When Click on SignUp And ...
0
votes
3answers
984 views

How to reuse existing browser session, instead of opening new windows?

I have a feature file which has many scenarios. When I run, every time it's initializing the new browser.It's performing every scenario in the new browser. I am using @before and @after @Before ...
1
vote
5answers
43 views

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 ...
2
votes
4answers
272 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
184 views

How to debug a protractor test written in typescript using cucumber?

I have a sample project with my test cases written in protractor in ts. I could not able to debug the ts. package.json "debug": "node --inspect=1337 --debug-brk --nolazy node_modules/cucumber/bin/...
0
votes
1answer
55 views

Can we use java to design specflows?

I am currently learning regarding specflows to design acceptance testing using cucumber, But I am getting information that we can not use java or Java script programming language only .net is ...
0
votes
0answers
52 views

How to deal Cucumber framework and end-2-end tests?

I'm facing the problem of writing e2e tests of the web application. Frontend of the application is mainly a form, where a user must pass through from the very first page to the last one. It's trivial ...
0
votes
1answer
252 views

Cucumber - Feature file with page object model approach

I am totally new to cucumber, I am using page object model approach. Let's say I have 3 page and 3 test classes Ex: login Page.java / loginTest.java Registration Page.java/Registration Test.java ...
5
votes
2answers
1k views

Maintenance of cucumber features by non-technical people

I have written a framework containing cucumber steps and their Java implementation using Selenium. They're generic enough for the application so that a user can now write new features using Gherkin ...
0
votes
2answers
295 views

How to clear text field in Appium 1.8.0?

Using appium 1.7.2, my test ran correctly and never had any issue with clearing text field with element.clear. but now since i upgrade my appium to 1.8.0 element.clear seems to stop working. it didn't ...
0
votes
0answers
128 views

XPath returns wrong element

Xpath returns wrong element I have a problem with xPath returning wrong element in code, but working as intended when i put it in my browser and search element with such xpath. The xpath that the code ...
3
votes
3answers
2k 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 ...
1
vote
0answers
244 views

Cucumber Report

I am not able to generate either a Cucumber report or a pretty html report. Runner Class: @CucumberOptions( features = "src/test/resources/Features", glue= {"stepDefinitions"}, ...
0
votes
0answers
156 views

Cucumber JS Step Definitions Coming Incorrect For Scenario Outline

Currently working with the .js port of Cucumber - CucumberJS. I am facing this issue where the scenario outline steps are not coming in the defined step. My Scenario is pretty simple Scenario ...
0
votes
2answers
179 views

CucumberTests java.lang.IllegalArgumentException: Not a file or directory

I have windows 10 and using cucumber version 1.2.5 I have the following in the TestRunner @CucumberOptions( plugin = {"pretty"}, features = {"src/test/resources/features"}) ...
0
votes
1answer
176 views

Unable to read the parameter value inside a class using TestNG

To achieve parallel execution, I am updating my existing Junit project to TestNG. The requirement here is to run one scenario in different browsers using TestNG RunnerClass is as follows: import ...
1
vote
1answer
95 views

CLEAR Method skipped while running the tests

I'm writing automation script for a page in which there is a text box. The scenario is as follows: I click on the text box and enter value which will throw error I clear the text box and add valid ...
0
votes
4answers
36 views

How can we manage cucumber background information when require hard set data aliases?

Consider a bunch of scenarios grouped into one feature file that all require setting up a valid user, however I do not want to generate such a user dynamically, for example: Background: Creating a ...
1
vote
3answers
163 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<...
-1
votes
1answer
133 views

How to get iteration count in cucumber?

I wanted to get iteration count in cucumber when we are executing feature file with multiple row from example in feature file.
4
votes
2answers
291 views

Managing repeatable test data when using cucumber and a BDD approach [Java, Selenium]

When dealing with the highest level of the stack, functional end 2 end tests under no isolation, I am writing my selenium driven tests using the cucumber / BDD syntax and running each scenario in ...
0
votes
0answers
578 views

TestNG with cucumber parallel runners, how to use a listener?

I use a parallel plugin for building out testNG runners for cucumber scenario/feature files. This creates a ton of customised runners in /target as part of the maven lifecycle. How can I use some ...
1
vote
0answers
278 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
4answers
1k views

Cucumber test suite: how to pass username and password without hardcoding

I'm building a test suite with Cucumber on Java + Maven + jUnit and I need to pass a username and a password to the test suite so it can log in to the application under test. I don't like the idea of ...
0
votes
2answers
98 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
2answers
2k views

Cucumber step definitions in .feature file not highlight

In my project, I create simple feature file in my maven project using cucumber syntax. but IntelliJ IDEA, not highlight steps in feature file and also I cant use ALT+ENTER key to create step ...
0
votes
2answers
175 views

Use Gherkin syntax for Acceptance Criteria without accompanying BDD tool

Pretty straightforward question: Does anyone have experience writing or consuming Acceptance Criteria written with Gherkin, but doesn't use a BDD tool like Cucumber, Specflow, etc.? Is this method of ...
1
vote
1answer
2k views

Unable to run cucumber tests from command line

I know this is the most common question but sorry I am posting this again as I tried all the solutions but couldn't solve the issue, Problem: I am unable to run my cucumber tests through maven and ...
2
votes
3answers
273 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
125 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
2answers
244 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
0answers
2k views

Does Robot Framework have more to offer than Cucumber?

I have some experience with Robot Framework + Selenium and am now learning Cucumber, since I noticed it's one of the most widely used frameworks in test automation. However, from what I've seen so far,...
0
votes
2answers
43 views

How to retrieve a variable from one page and pass the same in another page

Is there any possibility to fetch a unique value from one page and search the same unique number in the other page? Workflow: 1.Entering details in a webpage (while entering the details, a unique ...