1-3 March 2019

City, University London

Automate your test using Behat with Mink Extension

Prerequisites

Drupal knowledge

Session details

In Today’s fast-paced world with faster releases expected, growing is the demand for quicker testing as well. Testing is a blend of manual and automation activities. Regression scenarios are often the best candidate to automate.

We have “Behat” an automation tool in order to automate our test cases. It supports “Gherkin” language which is a human-readable language and you just need to write a minimal amount of code in order to write more powerful assertions apart from the inbuilt ones.

 

Here is an example of a Behat scenario written in Gherkin language:

Given I am on the homepage

When I visit “/index.php”

Then I should see “….message”

 

In order to make the interaction between the user and the web browser, we have a requirement to produce a script with a set of programs, like start browser, fill the correct credentials, and press the login button etc. Mink extension enables you to make it possible. which has defined many readymade step definitions which can be used. We can use a selenium2 server which contributes real-time behavior performance. We can check how it will work with the browser.

 

Key takeaways

•    What is Behat?

•    What is the use of mink extension with Behat 

•    Mink driver 

•    Execution on 

     o    Browser-based execution

     o    Headless execution 

     o    Tags/selected scenarios

Speaker(s)
Session Track

Keynote speakers

Rowan Merewood

Developer @ Google

Saturday AM

Preston So

Director of R&I @ Acquia

Sunday AM

Sally Young

Developer @ Lullabot

Closing Keynote

Drupal apprentices

The best people to train new developers are developers

The Drupal Apprenticeship Scheme will be running a London intake in March. If you are interested in hiring an apprentice or know someone who would benefit from the scheme please get in touch via the link below.

  • Created and run by experienced developers
  • Teaches core skills and best practice
  • Extensive support for businesses and teams

We are also really keen to hear from people who might be interested in mentoring, training and helping us to develop and review training materials to make sure they stay absolutely current and relevant.

Find out more

Join the Drupal Association

The Drupal Association unites a global open source community to build and promote Drupal.

The Association is a not-for-profit organization that relies on individuals and businesses to fund everything they do for Drupal — from drupal.org to DrupalCon and community programs.

Connect with us and support our mission-driven work.

Support the Drupal Association

Hosting provided by

platform.sh