Automate Testing with Behat, Selenium, PhantomJs and Nightwatch.js

nikhilsukul
gaurav.bajpai

Why test?
To ensure what we have built  does what it is supposed to do.
Something that works when one person uses it, may not work when many people are using it.
There is always a chance that a user really will do something unexpected.
There are many different devices, browsers, and operating systems in widespread use.
We owe it to our users and ourselves to deliver the best application we can.

Types of testing (at high level):

  • Unit testing
  • Functional testing
  • UI testing

To support these types of testing, a plethora of testing tools have emerged. Specific frameworks are used for specific types of testing.

In this session we are going to explore Behat, Selenium, PhantomJs and Nightwatch.js and also explain when should we use these tools.

What we will discuss:

  • What is testing?
  • Why is testing needed?
  • Types of testing
  • Headless browser testing
  • Real browser testing
  • PhantomJs
  • Selenium
  • Behat
  • Nightwatch.js, PhantomJs vs Selenium vs Behat vs Nightwatch.js
  • CasperJS with PhantomJs
  • Behat with mink
  • Behat with Selenium
  • Demo

Session Track

Coding and Development

Experience Level

Intermediate

Drupal Version