Technical information on this site may be out of date : no updates since 2015

Cross Platform Testing with Selenium and VirtualBox

April 27, 2009 , posted under php testing agile virtualbox selenium

As well as following standards such as those laid down by www.w3.org I always try and test websites I develop across a range of browsers. Despite improvements in compatibility in recent years, browsers do still vary in implementation and even relatively minor browsers are still used by large numbers of people.

However all this testing can be hard to keep on top of and sometimes I just have to push out what seems like a small code change with only limited testing.

I’m aiming to automate as much testing as possible, this is a little more work up front - but makes re-running tests trivial and so more likely to happen.

Read More…

Nework Error after VirtualBox Upgrade

April 27, 2009 , posted under testing virtualbox

I decided to upgrade  VirtualBox because the newer versions have much better support for networks that allow virtual computer to be visible on the real network.

But after upgrade I encountered the error

HostInterface’: The attribute ’name’ is required but missing.

It seems others have had similar issues

Read More…

Continuous Integration Testing for Drupal with CruiseControl (part 1)

April 8, 2009 , posted under php drupal testing svn cruisecontrol unit testing agile phpundercontrol

I recently finished work on a project that really suffered from a lack of build tools.

It was a large project, and while many of us were keen on writing tests we weren’t able to get management sign of to spend some time automating the test process. So even though we did some of the work we didn’t get all the benefits.

It was really frustrating to come back to a piece of work that was well covered by unit tests, only to find those tests broken

Read More…

IE6 on VirtualBox - installing the network driver

November 2, 2008 , posted under testing linux ubuntu web development virtualbox

One of the trial of web development is ensuring that your site works across a range of browsers.

Standards compliance is an important part of this - but testing cannot be avoided.

I work on Ubuntu, and use VirtualBox together with a licensed copy of Windows XP to test in a Windows environment, which also allows me to at least test the Windows version of Safari.

Read More…

Number Crunching : Database vs OOP

October 5, 2008 , posted under testing best practice sql oop

For the last few months I’ve been working on a project that is part website and part data processing.

In theory the website is the bulk of the project, but in practice processing the data has taken a disproportionate amount of resources.

Data exchange with another organisation is always tricky - and in this case we have incoming data that doesn’t conform to specification, business rules that change, and a daily data import to run.

The code I’ve been working on has been through a couple of versions, and now I have in mind a third

Read More…

SimpleTest - expecting Exceptions

June 30, 2008 , posted under php drupal testing

SimpleTest is a great testing framework for PHP, with a Drupal module available too.

Many tests are based on assert statements, but this patterns doesn’t work for functions which are expected to throw Exceptions. As at the time of writing Drupal’s simpletest module doesn’t catch exceptions and so the whole test run stalls.

In that case the following patterns are often useful.

Read More…

Testing websites in IE - verions 6 to 8

April 4, 2008 , posted under css testing best practice

When developing a website it’s important to test it in as many different web browsers as possible.

If a client has a problem viewing the page there’s little point saying “but it works on my machine”

I have found that the differences between different versions of firefox to be small enough that testing in one version is sufficient.

Read More…