Posts

Showing posts with the label bdd

Error: Failed to create scenario runner while using examples

Error: Failed to create scenario runner while using examples I am using Examples to enter the email but when I run the junit runner file it gives me the error: " Failed to create scenario runner" My Junit runner code: package Runner; import org.junit.runner.RunWith; import cucumber.api.junit.Cucumber; import cucumber.api.junit.Cucumber.Options; @RunWith(Cucumber.class) @Options(features="Features",glue={"stepdefinition"}) public class GmailRunner { } Here is my feature file: Feature: Smoke test of Gmail @GmailSignin Scenario Outline: Click on Sign in Given Open chrome When I go to gmail and click on Sign in When I enter "<emailid>" Then I click on next Examples: | emailid | | sarveshsingh.03 | I am using Cucumber-junit-1.1.2 and junit-4.11 Please help could you try upgrading your cucumber-junit ? – Prany Jul 2 at 3:52 ...