Skip to main content

Initialize a New Behat Project

To start writing Behat scripts first you need to initialise your project. You just need to run single command to initialise project which is mentioned here: 

$ bin/behat --init

After you executed this command "features" directory will be created inside your project, you need to add your features file inside this directory. Inside feature folder you will find bootstrap folder, you need to place your context classes here. Inside bootstrap folder you will find one file FeatureContext.php, you need to create your step definition in FeatureContext.php file.

Tags
Submitted by tgoswami on September 15, 2020

Tarun has 11+ years of experience in Quality Assurance in different domains like Banking, E-commerce, Health and Education.

About

At ProgramsBuzz, you can learn, share and grow with millions of techie around the world from different domain like Data Science, Software Development, QA and Digital Marketing. You can ask doubt and get the answer for your queries from our experts.