Skip to content


Acceptance testing PHP using selenium

As we are approaching the final stages of one of out projects, I have been doing some serious acceptance testing to make sure that the site is functioning correctly. To set the testing up, I was given a steer in the right direction and used the Seagull wiki as a guide for the installation….hat tip to Demian.

It is really easy to set the test suite up and to get going, all you really need are the following two downloads:

  1. Selenium core test suite
  2. To record tests the Selenium IDE in Firefox

Once you have installed the Selenium core web application and the plug-in for Firefox (Firefox rocks!!) you good to go:

  1. Plan the various tests which you would like to run
  2. Set the Firefox IDE to record your actions
  3. Once you’ve completed a certain test save the test in an .html file
  4. Include a link to your test file in your main index.html (TestSuite) file, which acts as a table of contents for the various tests
  5. Then you can either run the tests individually or as a batch

If you would like a more detailed tutorial, I found the one on the thinkPHP blog to be quite useful.

As Demian says, you start getting “addicted” to creating tests and eventually try to become a perfectionist – which is a good place to be in if you want to produce error free sites for clients.

Tags: , , , , , .

9 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Great beat ! I wish to apprentice while you amend your site, how can i subscribe
    for a blog site? The account helped me a acceptable deal.

    I had been tiny bit acquainted of this your broadcast offered bright
    clear idea

  2. Nice post. I was checking constantly this weblog and I’m impressed!

    Very helpful information particularly the last part :
    ) I care for such info a lot. I was looking for this particular information for a very lengthy time.
    Thank you and best of luck.

  3. It’s impressive that you are getting ideas from this paragraph as well as from
    our dialogue made at this place.

  4. In fact when someone doesn’t know after that its up to other
    users that they will help, so here it happens.

  5. What’s up, everything is going fine here and ofcourse every one is sharing information, that’s genuinely good,
    keep up writing.

  6. After checking out a handful of the blog posts
    on your blog, I truly like your technique of blogging.
    I bookmarked it to my bookmark site list and will be checking back soon. Please visit my web site as well and tell me
    what you think.

  7. It’s in reality a nice and useful piece of info.
    I’m glad that you just shared this useful info with us.

    Please keep us up to date like this. Thank you for sharing.

  8. Thank you for the auspicious writeup. It in truth was once a entertainment account it.
    Look advanced to more brought agreeable from you! However,
    how could we keep in touch?

Continuing the Discussion

  1. URL linked to this post on March 22, 2012

    … [Trackback]…

    […] There you will find 63820 more Infos: peeledcarrots.com/acceptance-testing-php-using-selenium/ […]…

Some HTML is OK

(required)

(required, but never shared)

or, reply to this post via trackback.