Automation BDD DevOps

BDDfire 2.0 with Docker, Gatling and Accessibility support

BDDfire

BDDfire allows us to setup Ruby Cucumber framework within a minute with all related toolkit. It became very popular as it gives us ability to setup Ruby-Cucumber framework without wasting time while setting up test framework for new projects. You don’t have to spend months and months setting up your frameworks and research the tools. BDDfire currently has more than  69,000 downloads and glad to know that few companies already started using it.

What’s new in BDDfire 2.0

Today, I am glad to announce BDDfire 2.0 with Docker, Gatling and Accessibility support. It means with BDDfire you can perform Load testing, Accessibility Tests and execute your scenarios inside the docker containers. You can find all the details on README file on Github. With BDDfire 2.0  you can

  • Setup instant Ruby-Cucumber Framework
  • Setup Docker environment for Cucumber
  • Setup Load and Performance scenarios with Gatling
  • Setup Accessibility Framework with Axe accessibility engine

You can literally do this with few commands.

bddfire2

Now that you have all setup to use inside the ‘cucumber’ directory. The load and accessibility setup is optional. You can skip that if you don’t want it at all. Now you can get going by doing bundle install

 

Watch this in action here 

Docker support

Docker is booming technology in the recent days and we don’t wanna mis the chance to use of docker in our cucumber BDD environment. BDDfire 2.0 will now create two additional files at the root of the project, ‘Dockerfile’ and ‘docker.sh’ which allows is to execute Poltergeist based scenarios inside docker containers.

Assuming, you have docker setup on your local machine. Please go to Docker official website to get yourself familiar with Docker and get yourself setup before you use it with BDDfire. Once you have Docker setup up and running. You can execute

This will build a ‘bddfire-ci’ image and runs cucumber scenarios inside the ‘bddfire-ci’ container.

Watch live action here

 Gatling [Load Test] Support

Recently, Gatling is emerging as effective and efficient load and performance testing tool. BDDfire also gives you option to run load and performance tests against your app or web pages.

You can get Gatling setup

You can see ‘load’ directory inside the framework with recorded sample ‘simulation’ called ‘SampleLoadTest.scala’ but you can record your own simulations to perform load and performance tests.

In order to run load test, you have ‘cd’ into ‘load directory and execute the bash script

This will run load tests against your url. You are free to record new simulations. Once finished there will be link to HTML report at the end.

There is CI integration to plug it with Jenkins and Docker support as well.

Watch this in action here 

 Axe [Accessibility] Support

BDDfire also create accessibility framework in order to perform some basic accessibility checks on your website or application. BDDfire uses Axe accesibility engine to perform accessibility related checks. You can get accessibility setup by

This will create an ‘accessibility’ directory. We can then run accessibility checks by passing and URL environment variable. We can also exclude some part of the page by EXCLUDE environmental variable.

We can exclude some part of the page from accessibility checks.

Watch it action here

Feel free to contribute and create issues on GitHub 

 

Enjoy BDDfire 2.0. !!