Following Steps:
- Created new Maven Java Project
- Downloaded JBehave JAR file version 3.6.8 and added it to Configure build path > Add External jars and also added the JUnit4
- Installed Eclipse Plugin from Help > Install new Softwares
- Created a package called SampleTests under the test source folder in my workspace
- Created a JBehave story in the above-mentioned package (Login.story)
- Created a Java class in the above-mentioned package (LoginTest.java)
- Created a Java class in the above-mentioned package (LoginTestSteps.java)
- Imported the Given, Named, Then, When annotations in my Java class
- Written two different scenarios in my JBehave story file
Stories are successfully mapped to the steps and also added maven and selenium dependencies to Pom file, since I have converted the project in test NG wanted to Run it using Test NG. Is it required to Run as Junit. And also added the library for TestNG in Build path.
I just wanted to know what did I miss in the setting up jbehave in my Maven project and how could I run my stories.
Please suggest
Thanks in Advance!