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