JSFoo 2015

The future of JavaScript


CasperJS - Behavioral Test for web application

Submitted by Ravindra Singh (@ravindrasingh) on Thursday, 30 July 2015

Section: Full talk Technical level: Intermediate


To explore CasperJS as a framework for automation testing for the web applications.


Most of the times, all you want is an automated way to ensure that your application is functioning properly at a high level. But do you really need to write mountains of Unit tests to achieve this? Moreover, can unit tests even achieve this at all? And when it comes to front-end behavior, how do you write effective tests?

CasperJS is an answer of all the questions mentioned above. CasperJS is a navigation scripting & testing utility for PhantomJS and SlimerJS written in JavaScript.

In this session, we will demonstrate:

-PhantomJS and CasperJS Introduction

-Features of CasperJS

-Playing with Casper API

-Headless demo with real world example

-How to test-

–HTTP authentication

–Mouse events

–Submitting forms

–Impersonating user agents

–Making AJAX requests

-How to minimize regressing testing with CasperJS

Target Audience:
Team Leads/Technical Architect/Project Managers/Developers/QA Folks

Speaker bio

Ravindra (http://www.srijan.net/team/ravindrasingh/) is a Technical Architect at Srijan. With an experience of working on multiple JS projects, he has a good understanding on core JavaScript which helps him to explore the JS frameworks easily.

Ravindra is a open source contributor (like he is contributing to Drupal 8 core and modules). Being a TA he is supposed to research on the best solutions from open-sources, and started research in testing frameworks like CasperJS and Behat which are faster by their headless nature. At the recently held DrupalCon in Los angeles, he was selected as a mentor for Drupal8 contribution.

Ravindra has been a speaker in various events. Below are some of the recent events where he presented a session.

http://drupalcampbangalore.org/drupal-camp-bangalore/sessions/behat-writing-tests-stylized-way http://www.slideshare.net/ravindrasingh251/how-to-contribute-back-to-drupal http://www.slideshare.net/ravindrasingh251/checklist-for-drupal-site-development-dev-tools


  • Suchi Garg (@gargsuchi) 3 years ago

    Really interesting session. I am sure this will answer lots of questions about automated testing.

  • Aashish Mangal (@aashish23) 3 years ago

    Much Awaited Session on CasperJS and PhantomJS
    Great Ravindrasingh will be there

    • Ravindra Singh (@ravindrasingh) Proposer 3 years ago (edited 3 years ago)

      Thank you Ashish, If you have specific questions in a context of CasperJS, please ask here, so I can address them also.

  • sami reshi (@samireshi) 3 years ago

    Thanks, this will enable us to get more insights about casper and phantomjs.

Login with Twitter or Google to leave a comment