This morning, i decided to deep dive in Test Automation to better understand what it means for Quality Engineers to write regression tests.

Selenium allows to automate browsers just like a real customer using an app. This is Graphical user interface testing, generating user interface events such as keystrokes or mouse clicks.

There are many approaches to test automation (Code-driven testing, API driven testing) but i feel closer to user experience than classes, modules,  libraries or API interfaces.

After reading about selenium tools, i decided to give a try using Selenium IDE (A firefox add-on allowing to do simple record-and-playback of interactions with the browser). Installing the add-on is just a matter of minutes, but to playback what you record, you’ll need to install Selenium Server.

The Selenium IDE add-on is quite simple. you’re able to record while using a website. You can then edit your action using a simple UI.

My first script is to automate the creation of a classified post on “Le Bon Coin”.

The script on the screen-shot bellow will

  1. open the base URL : http://www.leboncoin.fr
  2. Click on the France Map region “Ile de France”
  3. Type my username and password so that i’m authenticated
  4. Click the link to access the create an ad form
  5. Select the right category in the corresponding dropdown
  6. Type my ad Title, Description & Price
  7. Upload 2 pictures
  8. Click validate button
  9. Tick the accept conditions box on the next page before publishing the add.

seleniumIDE

This example doesn’t publish the ad, but if you get the idea, this is really easy to add.

You can then save your script, play it back, Edit it if you need:

That’s it… So what?

Think about using your product, identifying issues, visualizing use cases, specification by example, … your demos.

On the video above, i had to cut about 30 seconds while uploading the pictures. Maybe something “Le Bon Coin” could look into to increase conversion 😉

Enjoy!