Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
News World of XOOPS Developers Hacks Modules Themes YAXS Archive Submit News

Search

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $25.00
Net Balance: $23.57
Left to go: $76.43

Donations
Anonymous ($15)Jun-14
Anonymous ($10)Jun-10

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

2 2.5 2.6 3.0 87 2013 Abuse admin AntiHarvesting AntiMalUser AntiSpam API bags Beats billige black Blocks blue Bootstrap Captcha cell Christmas chronolabs content Conversion demo docek download Dresses editor evden eve facebook floor free herre Honeypot Human IP IPInfoDB jQuery kantor lamps Language log logger Lucire mobile module modules Monster mulberry MyAlbum-p newbb news online PageRank pandora Password Permissions pink Plugin portal preloader Prevention profile project propose Protector publisher Rights rmcommon Room Rotor sale security Server site SmartClone Smarty SOAP Songlist Spam stem Studio tag tags tdmcreate template Theme themes TinyMCE User userlog website Whitepaper Wishcraft xoops Xortify ZendFramework

New Users

Registering user

# 136113

metalgearxd

Welcome to XOOPS!

Archives

News Archives

Testing XOOPS Modules with Selenium IDE

Posted by Mamba on 2010/6/8 4:10:00 (3770 reads) | Posted on XOOPS
Testing is not popular! It is simply boring, and that's the reality!

When we are developing a new XOOPS release, most problems are being reported after the final release, when users start updating their XOOPS installations. The number of alpha/beta testers is unfortunately not very high.

Hopefully, this will change by using Selenium IDE, a very cool extension for Firefox, which allows you to record, edit, and debug tests. You can see it in action in this short video, where I develop some very simple tests for XOOPS Poll:



As you can see, we can develop very standard tests for each module to test their individual features. All these test cases can be then saved as a Test Suite for a particular module.

Once we publish such a Test Suite, individual testers can run these Test Suites in their environment (PHP, MySQL, etc), and report back any bugs that they encounter.

Selenium IDE will help us to reduce the testing time, take away the boring repetitive tasks, and will result in improved quality of XOOPS and XOOPS modules.

Of course, the challenge will be to create those tests.

Hopefully, our users will see the value in creating such tests and will help us with that. These test will show our developers how the modules are actually used, what activities are typically performed and in what sequence.

Please help us by creating these Selenium IDE tests! We'll create then a central library for these tests, so you could download them and test our standard modules, and help us with improving XOOPS and XOOPS modules.

Download Selenium IDE extension (Firefox only): here

Please follow-up in this thread



Printer Friendly Page Send this Story to a Friend Create a PDF from the article
Bookmark Me
Bookmark to Google Plus
The comments are owned by the author. We aren't responsible for their content.

Hopefully in the future, we'll be also using more and more PHP Unit Testing in the code itself.

You can read a simple introduction to Unit Testing in PHP here

It's also good to know that the free Netbeans Editor provides support for PHP Unit automated Testing (read here)
Published: 2010/6/8 4:45 • Updated: 2010/6/8 4:45
Now that is very usefull!! This way it so much more easy to explay certain behaviors with testing
Published: 2010/6/8 4:49 • Updated: 2010/6/8 4:49
Nice tuts ! and add on tv.xoofoo.org
future debug mode for xoops 3.0? http://particletree.com/examples/pqp/
Published: 2010/6/8 5:32 • Updated: 2010/6/8 5:32
I think, Trabis was doing something with PQP, but I don't know the current status.

I really hope, we'll get some of the tests done and submitted

It would be also good if the Module Developers would create a Test Suite for each of their modules. This would actually help them to test their modules, and make it easier to get feedback from the users, who could run the tests on various platforms.
Published: 2010/6/8 12:36 • Updated: 2010/6/8 12:36
Quote:
This way it so much more easy to explain certain behaviors with testing

Exactly.

Module developer can show how certain features/functions should be accessed.

And a user could record how he is using the module, and at which step a problem/bug happens, which could be then tested by the developer.

I see a lot of opportunities for quality improvement.
Published: 2010/6/8 12:38 • Updated: 2010/6/8 12:38