What is behave?

On this website, we follow ATDD/BDD frameworks for Test Automation. Cucumber has been used extensively for Ruby and Java tutorials and we believe that Acceptance Test Driven development gives the most ROI, along with speed and alignment with Continuous Delivery. Hence though there are many frameworks in each stack like Junit, TestNG, rspec and so on, we choose behave, because it helps the team collaborate and be on the same page, yet it is a powerful parser and a framework to implement Test Automation frameworks.

So continuing with the same tempo from Cucumber ruby, we choose behave on python side.

What is behave?

behave is behaviour-driven development, Python style. We have extensively written about BDD, ATDD, TDD already on this website.

If we visit the homepage for behave, we see the below.

python_behave

Install behave

Since behave is another library on python, we install it using pip as below

python_behave

Closing Thoughts

So now, we have installed python, selenium and behave. We have the runtime ready for us. In the next few sections, we will set up our first project and write initial scripts to get started.