Stack Exchange Network

Stack Exchange network consists of 175 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.

7
votes
4answers
1k views

Cucumber + Protractor : What will be good practices to maintain test data in separate file?

I am looking to see if this is possible... I am writing UI tests for web and mobile in Cucumber (using Protractor for web and Appium for mobile) and would like to store login details (email and ...
6
votes
1answer
547 views

How can I set up concurrent execution on multiple devices using different test users? - Calabash

I have an automation suite for our native apps on Android and iOS created using Cucumber, Calabash, and Ruby. I'm utilizing a Page Object Pattern to allow for our project to be cross-platform. At ...
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 ...
5
votes
4answers
1k 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 ...
5
votes
2answers
10k views

Correct Strategy for Element to be not present in DOM

I have scratching my heads around this problem for two days. I have a test where I need to check if a spinner is not visible to the user. This is the first test of a series of tests, and until the ...
4
votes
3answers
4k 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 ...
4
votes
3answers
115 views

What experience do you have with the idea “QA designs, Developer develops”

There is the opinion that QA should design cucumber scenarios, define the right data for tests, communicate with business and end users to fully understand use cases, focus to semantics and look also ...
4
votes
3answers
375 views

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"...
4
votes
2answers
4k views

Getting response headers with Selenium Webdriver / Chromedriver

I have a cucumber project in Ruby using Selenium Webdriver and Chromedriver and I would like to know if a page I access is up or in maintenance. To do this, I would like to access the response-headers ...
4
votes
2answers
1k views

How can I parameterize multiple users login in your specflow gherkin (Selenium Webdriver)?

I need help please, I have a working Selenium Webdriver/Gherkin/Specflow project that I created. I am trying to migrate my code to another environment (stage), but I only want to make changes in the ...
4
votes
1answer
4k views

Efficient way to test data quality of database through java?

I currently have to test the data that is being processed from a file into the database. Currently I'm using Java to extract the data from the database and compare the data mapped to the table ...
4
votes
3answers
176 views

Advice for an experienced manual tester for working with Ruby automation

I am manual QA engineer with 22 years of experience. Now I need to work on automating a Web App in Cucumber/Ruby using Capybara libraries using Selenium to drive the browser (Firefox). Rspec for the ...
4
votes
2answers
407 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 ...
3
votes
3answers
748 views

The best time to run acceptance-tests with Cucumber/selenium?

I want to know, which is the best way to run automated and acceptance tests? Because now I have two environments, which are develop and qa, but I don't know if the better way to run these tests is ...
3
votes
4answers
418 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
1answer
250 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, ...
3
votes
1answer
3k 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 ...
3
votes
2answers
2k views

Unable to handle iFrame in Selenium

I'm trying to access iFrame <iframe id="frame1" style="width: 100%; height: 100%; display: block;" tabindex="100"> <html> <head xmlns="http://www.w3.org/1999/xhtml"> ...
3
votes
1answer
54 views

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 ...
3
votes
3answers
422 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 ...
3
votes
1answer
2k views

Async/Await with CucumberJS

For my project, I am moving the code to the async/await model, thus disabling the control flow. While doing this, I am having persistent problems with the callbacks() and async tasks being either ...
3
votes
1answer
6k views

How/When to fail the test case in case of exception occurs with Selenium WebDriver

I'm using Selenium with Cucumber and also using Page Factory for good framework practices. As we need to follow the principle of Fast Fail when we get TEST ERRORS/TEST FAILURES We use Asserts in ...
3
votes
1answer
201 views

How to Allow Firefox Offline Storage using Selenium

I am in the process of creating some BDD tests using Java, Cucumber & Selenium. The problem I am having is the website I am attempting to test has been specifically designed to work with firefox ...
3
votes
1answer
467 views

Unable to launch Safari on iOS using Appium

I am automating some tests a real device (iOS) using Appium and Cucumber. My idea it to do the following steps: Open the app Do some tasks Launch Safari Navigate to a website, lets say google.com ...
3
votes
1answer
685 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
0answers
504 views

Why am I getting a NullPointerException with different classes for Cucumber? [closed]

Currently I am unable to run classes present in different step definition files in cucumber under same package.How do I make it run? I am getting a NullPointerException in the console for the methods ...
3
votes
1answer
612 views

Cucumber Gherkin XML-input

I am working on a REST-API that validates data (system to system communication). This data is described in XML. The content of the XML is validated using business rules which are implemented in the ...
2
votes
1answer
2k 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 ...
2
votes
3answers
2k views

How to run selenium-cucumber eclipse project through command prompt

I need to run selenium-cucumber (Junit) project from command prompt. I tried using the statement in command prompt: java -cp E:\Workspace2\AP\Jars\*;E:\Workspace2\AP\src\stepDefinition\ cucumber.api....
2
votes
2answers
472 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 ...
2
votes
2answers
1k views

@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 ...
2
votes
2answers
12k views

Getting Started Web service and RestFul API Testing with CUCUMBER - Looking for tutorials

I am looking to get started building a project and want to use CUCUMBER from day one. My Ruby background is Intermediate; however, I do have a good understanding of MVC and the structure within Ruby. ...
2
votes
2answers
364 views

How can I reset my test data when a UI-test fails with Cucumber-JVM

I'm not a Java, Cucumber, Selenium athlete, but I've managed to cobble together some robust Cucumber tests that work. Each test tears down any data created to support it. Problem is the environment ...
2
votes
3answers
5k views

Running a Cucumber scenario multiple times as long as a new Test Data set is present in excel

I have a scenario where i need to execute a scenario in a feature file multiple times as long as the Test Data is present in the Excel. Each row of the Excel has a different set of test data. I want ...
2
votes
3answers
3k views

How to implement the cucumber data table for different JSON post using java?

I'm trying to post different json body , but same set of set of steps ie., request builder, header and assertion. Is it possible to implement cucumber data table for different set of json?
2
votes
1answer
92 views

Selenium exception is reported twice in logs

I am using Cucumber Page Object model to execute my tests. Here is my POM file:- <dependencies> <dependency> <groupId>info.cukes</groupId> <artifactId&...
2
votes
1answer
4k views

Selenium - How identify disabled field

I want to get the data from disabled field. Here is the HTML: This field is a drop down and i want to identify selected data from the that field. for e.g. field name is Exchange and selected data is "...
2
votes
1answer
114 views

Selenium>Cucumber: How can default parameter be limited for steps?

I'm new to Cucumber and want to understand how to use default param in a feature file testcase.feature for example: And User click Delete on task action In the step definition, the params could be ...
2
votes
1answer
344 views

Appium (iOS) how to choose two UITableCells with the same name

I am using Appium and Cucumber with Ruby to carry out some UI tests on our application. I want to use the code below to select a button, with the same name but found in two different cells, for ...
2
votes
1answer
108 views

How to pass the same webdriver instance between Cucumber tests?

I have a series of steps in a Cucumber-automated test for a web-site. In some cases, I need to pass the Selenium webdriver instance, such that the test can use it to wait until certain elements on the ...
2
votes
4answers
547 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?
2
votes
1answer
892 views

Cucumber: Type Mismatch cannot covert from Class <Step Definition> to Class<?extends Runner> in eclipse

I have been playing around with Selenium Cucumber and came across this error message: Type mismatch: Cannot convert from Class StepDefinition to Class?extends Runner and here is my code: package ...
2
votes
1answer
160 views

CitraTest vs Selenium/Cucumber

I have used Selenium/Cucumber in the past for automated testing and it works great. My new company is using CitraTest (which I have not seen yet). Is there anything CitraTest does that Selenium/...
2
votes
1answer
802 views

Debug cucumber js selenium webdriver

I am using cucumber js + selenium webdriver + Webstorm IDE. What is the most convenient way to debug my tests?
2
votes
1answer
354 views

International + locale automation : Is this good practice to load large amount of data into cucumber / selenium via yaml files for test automation?

I'm somewhat new to automated testing and this is a general testing design question based on my current project: A client has a question/answer tool in Excel that is being ported over to a jekyll/...
2
votes
0answers
456 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(...
2
votes
1answer
250 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 :- ...
2
votes
0answers
827 views

How to run same test case in different browsers in Cucumber using Java

New to automation and Cucumber. I have a .feature test case (a simple login function) that I would like to run in multiple browsers in parallel. I want to store the browser properties in a global ...
2
votes
0answers
1k views

Can't run tests from Cucumber feature.file (cucumber.runtime.CucumberException:)

I can run my tests from my runner class without any problem. Here is my Runner-class: @RunWith(Cucumber.class) @CucumberOptions( format = {"pretty", "html:target/cucumber"}, glue = {"...
2
votes
1answer
139 views

Automated integration testing spanning multiple services

I am working on a project in which we keep one wiki platform in sync with the content of other. The way we do this is a document edit on 'Wiki A' kicks of a data flow pipeline that transforms data ...