Software Quality Assurance & Testing Asked by Sachintha on January 6, 2022
In my project, I create simple feature file in my maven project using cucumber syntax.
but IntelliJ IDEA, not highlight steps in feature file and also I cant use ALT+ENTER key to create step definition
I added the cucumber-java dependencies and also installed the Gherkin and cucumber plugins, but still feature files aren’t recognized as they should be. What could be the problem?
In the TestRunner.java file. I added the following code: "stepNotifications = true"
package cucumberOptions; import org.junit.runner.RunWith; import io.cucumber.junit.Cucumber; import io.cucumber.junit.CucumberOptions;
@RunWith(Cucumber.class) @CucumberOptions( features="src/test/java/features/Login.feature", glue="stepDefinations", stepNotifications = true) public class TestRunner {
}
Answered by Wilson Manuel Rojas on January 6, 2022
I too get same problem when tried to create from the scratch. I have found this solution
Hope this helps....
Answered by Sowji on January 6, 2022
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP