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
2 answers

Gradle does not download dependencies for tests defined in custom sourceSet

I have the following project structure: MyProject --src --test --acceptance --java --resources --unit and the following build.gradle apply plugin: 'java' apply plugin: 'idea' version = '0.1' repositories { …
0
votes
2 answers

Cucumber feature files are not executed using Maven

Hi I have setUp a Java project using Maven in eclipse. I am facing an issue whenever I am trying to run the script. Its is executed by the not opening the desired website which I am parsing from the feature file. Please have a look to the following…
Zain
  • 5,391
  • 11
  • 34
  • 34
0
votes
2 answers

Cucumber JVM for Scala with Guice & Cucumber JUnitRunner?

We are using Cucumber JVM for Scala and as the application grows it would be nice to cucumber-guice in the picture as well. The problem is that I can't see any useable examples/tutorials/documentation on how to do it. I do have a working…
Balint Pato
  • 1,497
  • 1
  • 13
  • 28
0
votes
2 answers

What do I do about database loading with Cucumber JVM/JUnit

I want to use a feature file with cucumber jvm that will hold the data for the test. I am testing a method that uses hibernate to load an object before processing. public Deal getDealById(Long dealId) { deal = template.get(Deal.class, dealId); …
Adam
  • 95
  • 1
  • 2
  • 8
0
votes
1 answer

Using Frank/Cucumber for XCode Automation Testing

I am trying to explore different ways of possibly doing Automation testing for my XCode apps and came across Frank/Cucumber but I am just really confused about how it all works. What steps does Cucumber take in actually starting the test? You have…
cspam
  • 2,911
  • 2
  • 23
  • 41
0
votes
1 answer

In Cucumber-JUnit, is there a way to control the order in which features get reported?

I am running a basic Cucumber-Jvm test with two features called "Basic Math" and "Advanced Math" (in files basic_math.feature and advanced_math.feature respectively). However, when the HTML report gets generated "Advanced Math" gets displayed…
Sled
  • 18,541
  • 27
  • 119
  • 168
-1
votes
1 answer

Karate-config.js file is not saved as JS file in eclipse

This is how it looks like inside file I did this eclipse preference also :
Wasim
  • 29
  • 3
-1
votes
1 answer

Cucumber:Assert values irrespective of Index

I am working on updating functional test suites using Cucumber feature file.The issue my output is an array which is not sorted.Index of the object may change. Array: [{ "id": "12", "name": "Something" }, { …
Rocky4Ever
  • 828
  • 3
  • 12
  • 35
-1
votes
1 answer

How to upgrade serenity and its dependencies in my bdd framework

I have a serenity bdd automation framework using maven, junit selenium, cucumber and serenity. My current serenity core version is 1.5.3. I am trying to upgrade it to the latest version of serenity core. Once i update the version and dependencies…
-1
votes
1 answer

How to do parameterization using Json in selenium cucumber framework

I am using selenium-cucumber framework in our project. So i have feature file in one package, stepdefinition class in one package and runner class in another package. I have some steps in Feature file as given below. Feature: To test login of…
Devleena
  • 453
  • 9
  • 25
-1
votes
2 answers

How to Display Json Array Response body in console using Rest Assured concept

[ { "bookId": 8, "bookName": "social", "authorId": 7, "authorName": "Ram", "publisherId": 6, "publisherName": "potho", "genre": "nature", "price": 1000, "numberOfPages":…
-1
votes
1 answer

BDD Cucumber Maven Junit Parralel execution not working

I have 3 feature files each features contains of 3 tests so in total 9 tests but only 3 tests are executing and its picking up on;y 1st feature file.I have given global tag @smoke in all feature files Please find the pom file below. …
-1
votes
1 answer

How to use cucumber correctly?

For example, the Yathzee game has a score card with 13 categories, when I want to test scoring, should I just create a .feature file and write 13 scenarios to test each category, or create .feature file for each categroy?
-1
votes
2 answers

Test not getting picked during parallel run and no report getting generated

Im trying to run karate Api test code but During parallel run, Test no getting picked by KarateOptions. Cucumber Report too not getting generated. package com.karate.test; @KarateOptions(features="classpath:com/com/karate/test/workflow/",tags =…
safiuz
  • 9
  • 7
-1
votes
1 answer

Testing File Streaming in Cucumber

Any idea how to test file streaming in Cucumber? Note this is a Java microservice with a client and server architecture. The client talks to the server on a designated port..I just dont know how to do this? Most of the examples that I have seen are…
Mark Estrada
  • 9,013
  • 37
  • 119
  • 186
1 2 3
37
38