Using Behat as a Webapp Automation Tool

45:10
144
2
0
0
0
Share
Feb 03, 2019

Presenter(s)
Karl DeBisschop
Cathy Theys

You may have used Behat as a tool for testing features of your web application, but have you thought about how it could be used to automate some tasks on your production sites?

In this talk we will show how Behat can be used with RunDeck (or any similar tool) to carry out tasks in a black-box fashion on Drupal or any other web application. With build parameterization the same task can be made to run against multiple sites with different URLs or credentials.

We will explain at a high level how, by verifying the success using Behat itself, we verify that the operations completed correctly and we know what needs intervention.

We will show examples with RunDeck running Behat with an older Drupal-based web application such as

Configuring themes without drush
Running updates without drush
Invoking a Drupal menu to maintain/update taxonomy access
Changing Admin Password
For each example, we will show the Behat code, the Rundeck config, and have a recording of the examples running for demonstration. We will also discuss ensuring end-to-end operation of a Shibboleth/OpenLDAP Authentication chain.

Additional configurations (for example, Jenkins) will be suggested for inspiration and discussion.

Who Should Attend
Site Builders
Sys Admins
Prerequisites
CI/Deployment Tools (i.e., Jenkins, RunDeck)

Behat (or other behavioral testing tools)

https://www.drupalcampnj.org/sessions/using-behat-webapp-automation-tool

Hi! I'm Karim Boudjema, the developer and site-builder of this site.

I was wondering how could I giving back to the Drupal community all what it gave to me during the last 10 years, that's how the idea of this site came to me ... (read more)

Hi! I’m Santiago Rico, the web designer and themer of this site.

When Karim proposed me to design and theme this site for the Drupal community, I accepted immediately because the community is the main reason why I love Drupal so much.