I am writing very basic automation test with Selenium-Cucumber that is launching an IE browser and closing it at the end. The problem is that the browser gets launched twice. The test does not have much it other than few System.out statements. I am kind of new to both selenium-based automation testing and Cucumber and not able to understand why
Tag: cucumber
I cannot @Spy Object in Cucumber Spring Boot Test in two Steps Definitions
I’m having a problem running cucumber test with Spring Boot 2. I have two steps definitions and in both clases I try to spy an object with mockito trying to capture the argument passed to one method of this class. The point is that since Cucumber only allows one Spring Application Context Configuration I’ve created an abstract class to configure
Can’t run testng.xml in Cucumber-Maven(TestNG)
In eclipse IDE, I have created a basic cucumber framework by using Maven project. I have added all the dependencies required in pom.xml.For TestNG plugin added below dependencies. But ‘TestNG Suite’ option was not coming in preferences,so installed TestNG through Help->Install New Software. Framework is having feature file(scenario is described),stepdefinitions(code/logic given) and runner class(To map feature with stepdefinitions file and
How to order feature files in Cucumber test suite?
Currently, I have found that cucumber test suite runs the feature files alphabetically. Please let me know if there is any option/configuration that I might be missing. Thanks. Answer In cucumber 4.2.0 added cli option –order, see changelog and this example.
Cucumber feature file does not identify the steps
I have written my firsy cucumber feature file. When I run the feature file as Cucumber Feature, I get below errors “WARNING: Cucumber-JVM’s –format option is deprecated. Please use –plugin instead.” – I used “plugin” in my @CucumberOptions of runner class, but still getting the same error 2.It says I do not have any scenario and steps Feature: Validate Modular
Error while running cucumber in junit
Hi i am new to cucumber java. i am trying to run a simple cucumber feature test. below are my feature file, step definition file and junit runner file. but i am not able to run the test succesfully in cucumber-java,cucumber-junit 1.1.6 version. Feature file Stepdefinition file Cucumber runner file I am getting below error: POM.xml But when i am