As you all know components of BDD (Behavior Driven Development) are
- Feature file (written in Gherkin language)
- Runner class (upon running this class, it generates methods for each steps written in feature file)
- Lastly the Step file
So, instead of creating runner class & copy pasting the methods in step file, we can use this utility to save our time.
###################
###################
- Copy the jar where all the feature files are
- Double click on the jar
- It will create two folders (
Runner
-> For runner classes,StepDefinition
-> For Step files)
NOTE::
- ThereThere is a folder "Feature" having two feature files, just copy the jar there & run it for having the idea how it works.
- This project contains both pom.xml & build.gradle, so it can be built using maven as well we gradle.
mvn [clean] package
to clean the project & make a jar ;gradle [clean] jar
will do the same as maven.- There is only one class "App" which has got all the methods for computing the thing.
- Logs also gets generated, which will help for debugging in case of bad feature file or some error.
Intent of this project is just to demonstrate how we can automate the thing. And utilizes both gradle & maven build tools (one can use any of them).
Hope you all find it helpful
Any suggestions would be appreciated
THANK YOU