Open vvarigonda opened 4 years ago
Hi! Can you share yourk testRunner class?
`package Com.qa.runner; import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions; import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class) @CucumberOptions(features="java/Com/qa/features/Login.feature", glue={"Com/qa/steps/LoginPageSteps.java"}, format= {"pretty","html:test-output", "json:json_output/cucumber.json", "junit:junit_xml/cucumber.xml"}, //to generate different types of reporting monochrome = true, //display the console output in a proper readable format strict = true, //it will check if any step is not defined in step definition file dryRun = false //to check the mapping is proper between feature file and step def file
)
public class TestRunner {
} `
This looks like a Cucumber question - that doesn’t look like a Serenity project
Sorry posted in wrong group. Can we move to cucumber group?
If you use Serenity BDD you need to set annotation like this @RunWith(CucumberWithSerenity.class) public class TestRunner {
Thanks @qaschevychelov @wakaleo If you mind sharing link for cucumber forum
Hi guys
Unable to fix this problem on my MAC. Please help me.Edited POM.xml following other blogs,still same error.
java.lang.NoSuchMethodError: cucumber.runtime.RuntimeOptions.getJunitOptions()Ljava/util/List;
Process finished with exit code 255 `
Here is my POM.XML-- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">