JSFoo 2015

The future of JavaScript

Ravindra Singh

@ravindrasingh

CasperJS - Behavioral Test for web application

Submitted Jul 30, 2015

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

Outline

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

Comments

{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hosted by

JSFoo is a forum for discussing UI engineering; fullstack development; web applications engineering, performance, security and design; accessibility; and latest developments in #JavaScript. Follow JSFoo on Twitter more