I am trying to automate one scenario using Cucumber. Step Then Create item actually takes values from first row only. What I want to do is execute step Then Create item 2 times, before moving to step Then assigns to CRSA. But my code is taking values from first row only (0P00A). How to take values from both rows? Answer
Tag: cucumber-java
ClassNotFoundException in cucumber framework
I am using Cucumber framework for mobile app testing. In pom.xml, I have given this below plugin to run TestClass.java – which has code for uploading the latest APK version of the app. Main method is present inside this TestClass. I need this to run before the actual test execution. So I have used exec plugin. I’m getting this error
IntelliJ does not recognize parameters in cucumber step definitions – Number expected
All of my cucumber test steps show errors when I use a parameter in them. This is one of the examples of the steps that I have in the my code: IntelliJ shows the following error: While this does not prevent it from running, it is extremely annoying to see my step definition files with loads of red lines and
How to link setpDefication and feature file in cucumber is not working
I’m new to Cucumber jJava and had this problem in the initial stages. I’m using the MAVEN project. I have created a feature file, stepDefination file, and Test Runner file. In the feature file, I have mentioned some scenarios and step definition files, write Selenium Java code, and the last TestRunner class I have created and mentioned codes. Answer Check
Cucumber With JUnit java.lang.ExceptionInInitializerError
I’m new to the UnitTesting and Cucumber, and today I tried to implement a simple example from a tutorial in Intelij and Eclipse and I got the same error when I try run the TestRunner.java. My pom.xml: File .feature TestRunner.java Steps My file structure: And the error: 1 Scenarios (1 failed) 4 Steps (1 failed, 3 skipped) 0m0,225s java.lang.ExceptionInInitializerError …
unable to write the logs to log file using log4j through Gradle
I am working on Cucumber TestNg Gradle automation project. As I am new to Gradle and not able to figure the issue though I have put in appropriate log4j dependencies in build.gradle file. Can somebody look into this issue and provide the solutions or advise me on what went wrong due to which logs are not written to log file
Getting an exception “org.apache.maven.surefire.booter.SurefireBooterForkException: . VM crash or System.exit called?”
I am working on a Selenium Automation project which is based on Maven Cucumber + TestNg. While on run i am getting the below exception not sure but tried all the possibilities of incrementing or decrementing the Surefire versions. Error occurred in starting fork, check output in log Process Exit Code: 1 org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying