selenium

Google Chrome joins Simpletest Selenium framework for Drupal

One of the modules I am involved in is Selenium module. In brief it integrates Selenium2 to simpletest framework of Drupal. From the beginning it was possible to run test in Firefox that opens pages of the simpletest sandbox. As we are in full control of browser we are able to test javascripts in it. This is the main goal of the Selenium integration.

Drupal Selenium tests API

This article is followup of the previous two Selenium testing in Drupal and Run Selenium tests in Drupal on Debian headless. I strongly recommend to read these two articles (at least watch demo videos) before reading more technical explanation below.

Now is the time to explain how to write tests using Selenium in simpletest.

Run Selenium tests in Drupal on Debian headless

In previous article (http://ygerasimov.com/integrating-selenium-to-drupal-simpletest-framework) I have written about introducing Selenium tests to Drupal simpletest framework.

The first question I got on IRC from Randy Fay was whether we can run selenium tests from console. Today I have managed to do that and I would like to share how to set environment.

So demo first!

Selenium testing in Drupal

After attending our local SeleniumCamp (www.seleniumcamp.com) in February this year I found very interesting possibilities for testing web applications. This topic I would like to share my thoughts about how to use Selenium framework to improve test coverage of our drupal sites.