Questions tagged [cucumber-junit]

The JUnit integration provided by the Cucumber-Jvm project.

Cucumber-Jvm is the pure java rewrite of Cuke4Duke which just a port of Cucumber from Ruby to JRuby. Cucumber-JUnit provides integration with JUnit so that Gherkin tests can be run alongside other JUnit tests.

562 questions
0
votes
1 answer

Maven properties tag and version for dependency

When I am using version for the dependencies from the keys which are defined in properties section of the pom file then the dependencies are not getting downloaded, but when I am hardcoding the version for dependency the dependency is getting…
manishgdev
  • 148
  • 3
  • 12
0
votes
3 answers

Cucumber web testing - capture vaules

I need to automate a registration form and create a new account and then use the same account details to login with newly created account number and password.I need to do this in one scenario. Feature: create new user and capture the username,…
Samantha
  • 357
  • 2
  • 7
  • 17
0
votes
2 answers

Can I create an automation script with Java + Eclipse + Cucumber without creation a marven project?

I want to generate automation test report in eclipse project. I didn't create a marven project and I used Eclipse, Cucumber and Selenium web driver for automation scripting. But I cannot find how to generate an automation report. Please tell me if…
0
votes
2 answers

why the browser can not read the ID in Java with BDD eclipse however in other website is reading it with the same code

I have java code for one of my automation website and I copy that code to other PC to run other Website however the first step is running ok which is open the URL but the rest can not be run , unable to locate the element id , here is the code in…
0
votes
1 answer

Cucumber-spring dependency issue

I'm trying to write integration test for DAO using cucumber. When I try to add the following dependency info.cukes cucumber-spring 1.1.5 I'm…
technophile
  • 37
  • 2
  • 8
0
votes
1 answer

Junit Runner Class Unable to locate Step Definition file

JUnit Runner class is unable to locate the Steps definition file with project structure Below: src/test/java/com/testSteps/TestSteps.java and JunitRunner class under src/test/java/com/cucumbertestrunner/TestRunner [ …
Asif
  • 39
  • 2
  • 8
0
votes
5 answers

How to run multiple tags from testrunner class file in cucumber framework using @tags?

@RunWith(Cucumber.class) @CucumberOptions( plugin = {"pretty","html:target/html/automation"}, features = {"resource/***.feature"}, glue={}, tags={"@login","@Products"} ) This is my feature…
tsr_qa
  • 633
  • 3
  • 9
  • 27
0
votes
1 answer

unable to fill data into application with cucumber

I already have a selenium code for Salesforce and am using JUnit and Cucumber to pass data. Now am adding another application to this code,But am unable to pass the values into application with cucumber.Can anyone please help me.
gms
  • 11
  • 2
0
votes
1 answer

Runtime option Error when upgrade cucumber to version 1.2.4

I got this error when I am trying to upgrade my cucumber version from 1.1.2 to 1.2.4. I am running on JDK1.8. This is the code not working RuntimeOptions runtimeOptions = new RuntimeOptions(System.getProperties(), argv); Runtime runtime = new…
isian8814
  • 191
  • 10
0
votes
2 answers

junit cucumber missing steps error

Java - cucumber example Looks like i am missing steps, it is complaining about missing steps and considering them as undefined .feature file: Feature: Roman Feature Scenario: Convert Integer to Roman Number Given I am on the demo page When I…
d-man
  • 57,473
  • 85
  • 212
  • 296
0
votes
1 answer

cucumber + java :Passing paramater returned in step1 to step2

I am new to cucumber. We have below use case for UI automation through cucumber. Please consider below example. in TestNg, @Test {"formname"} public void createAndSearchForm(String formName) { //In below step, it create form by name…
0
votes
1 answer

Cucumber Reporting getting Error

I am using a Cucumber reporting api for better reporting. My project is not a maven project and cannot change the project structure now. So I add all the dependency on my project but still now it is getting error like…
saba
  • 539
  • 1
  • 14
  • 30
0
votes
1 answer

CucumberException : Failed to create scenario runner

When I try to run my scenario outline, I get this error - CucumberException : Failed to create scenario runner. The same scenario outline was running successfully a few days back, but now I get this error. I looked up this error online and found…
sanaku
  • 309
  • 2
  • 6
  • 18
0
votes
1 answer

cucumber.runtime.CucumberException: Failed to instantiate class

Here is my cucumber base class. @CucumberOptions(plugin = "json:target/cucumber-report.json", features="SFDC_Automation/features/featurefilename.feature", glue="classpath:tests.SFDC.StepDef") public class InsideSaleTest extends…
Umang
  • 11
  • 1
  • 1
  • 4
0
votes
1 answer

Running function after JUnit test runner

Is there a way to trigger some function to run after the junit or cucumber testrunner is done? I want to run a function that picks up the test report produced and push it to a specific place. I dont have any other way to do this since builds are…
user3139545
  • 6,882
  • 13
  • 44
  • 87