Behat is a well known PHP driven test automation framework that supports BDD. Testing user workflow on front-end is easily done by Mink extension in Behat. However, what about testing Drupal backend scenarios? How about having an extension for testing Drupal backend scenarios like creating/managing users, taxonomy terms and nodes, clearing cache without having the need to write any PHP code for it. These are just some of the backend scenarios to list, there's more to it.
- Basic workflow of Behat, that's it. Don't worry, I will give a quick overview of it though.
In this session, I am going to speak on following topics in Drupal Extension using Behat:
- Quick Overview on What is BDD?
- What is Behat and Gherkin?
- How to install Drupal extension?
- Explain the various drivers available and their differences.
- Give a working demo explaining all the Drupal Extension drivers.
By the end of this session, you will learn:
- How to install Behat with Drupal Extension on your machine, Any OS.
- How to get started immediately with backend testing of your Drupal website, without having to write any PHP code.
- How to execute tests on both, your local instance and any remote instance (like test or prod instance)
- How the framework is designed to re-use your test data?
- How to enhance your tests by writing custom functions?
About the Speaker:
I have been actively conducting internal Webinars in Axelerant and also publishing my knowledge via blog posts and GitHub repositories. I haven't really spoken in a DrupalCamp (looking forward to this one!), but have participated in elocution and debates right through my school days.
GitHub - https://github.com/shwetaneelsharma
Sample Blog post - https://www.axelerant.com/team-blog/what-makes-agile-qa-testing-different