unable to import CucumberFeatureWrapper in my TestRunner class in Cucumber

Viewed 22

I am trying to set up the Cucumber+TestNG framework for Java.

@Test(dataProvider = "features")
public void feature(CucumberFeatureWrapper cucumberFeature){
    testNGCucumberRunner.runCucumber(cucumberFeature);
}

CucumberFeatureWrapper class is not loading/importing properly.

I have the latest Maven dependency for Cucumber-TestNG: as follows:

<!-- https://mvnrepository.com/artifact/io.cucumber/cucumber-testng -->
<dependency>
    <groupId>io.cucumber</groupId>
    <artifactId>cucumber-testng</artifactId>
    <version>7.8.0</version>
</dependency>

, it seems like that class is missing from jar file. (as below)

enter image description here


my question would be, was class deprecated or something?

Hope anyone give me any advice how to resolve this issue?

Thank you

0 Answers
Related