Testing Drupal with CasperJS

Speakers: 

CasperJS is a navigation scripting & testing utility for PhantomJS and SlimerJS written in Javascript. The fact that seems most appealing is that tests are written in JavaScript.

Once a project is live and stability is a must, writing tests that verify the core logic of the application and run on a Continuous Integration system saves the team from a lot of manual testing time and gives more confidence when deploying a new release.

In this session we will go over the basics of CasperJS and PhantomJS (the underlying browser) and then move on to some examples such as opening pages, submitting forms, taking screenshots, jumping from one role to another, run JavaScript in the browser's console, and integrate it with Drush, Jenkins and Github.

Related resources

Schedule info
Track: 
Frontend
Experience level: 
Intermediate
Drupal Version: 
Drupal 7.x