This site is archived.

testing

Use SimpleTest!

Karsten Frohwein 19 June 2010
Type:  Session in official program

In this session I want to show you how you can test your modules and make them more reliable than they ever where! Testing rocks! And Drupal has a nice way to do this with SimpleTest. Additionaly we take a quick look at selenium and what we can do with it.

The first time I was forced to create a test for a core patch I wanted in D7 I really hated it. But now some months and some pain later I can say it was worth it.

Testing makes our modules more reliable. Even if we have todo a lot of work at start creating a test later on we will spend less time on debugging stuff. Even if our module ceases to work correctly we will be quicker at finding the problem.

Let us take a look how we create tests for our modules by using simpletest. It's easier than it looks and I will help you getting into it! :)

My session will cover:

Additional Presenters:  Karsten Frohwein

Pro-active Selenium testing with Drupal

J-P Stacey 18 June 2010
Type:  Not planned session

Want to get robust tests for your site running NOW, but don't know how? Selenium needs no PHP or Drupal chops and you can write tests by just clicking around the site.

Selenium is a testing framework which allows anyone - developers, designers, project managers or the client - to record user journeys in their browser and have those user journeys be replayable on anyone else's browser. It also supports whole suites of tests, automating in the browser and automating outside the browser using a dedicated testing server.

Selenium's a great choice for Drupal testing because so much of the functionality you or your client will want to build is browser-based. Also, with a few extra tweaks, Drupal can integrate very nicely with Selenium to produce robust tests.