User:MarkAHershberger/Weekly reports/2010-W34

This past week I started working on understanding the Selenium tests and how the to integrate them with phpUnderControl.

RunSeleniumTests.php
The first thing I did was look at the RunSeleniumTests.php script. Since I needed to add some functionality to it and the script was not written using the Maintenance class (which I still need to document), I decided to update the script. This would help me understand it as well as provide a little more experience with the Maintenance class to help me document it.

During the process, I added a couple of useful methods for script writers: deleteOption and addDescription. deleteOption was necessary because the Maintenance class provides some default options that most people will find useful. However, for testing scripts, some of these options would be confusing. The addDescription method simply provides access to the member variable similar to <tt>addOption</tt> or <tt>addArg</tt>.

While working on the script, I saw that the <tt>DefaultSettings.php</tt> file had become “corrupted” with a number of Selenium-specific global variables that were only used during Selenium testing. I will work to remove those settings to an <tt>.ini</tt> file and provide a way for people to upgrade their configuration easily this coming week.

Documentation
After my review last week, it became clear that I need to put more priority on documentation. In this vein, I'll be documenting (for real, this time, I swear) the how people can use the <tt>Maintenance</tt> class to write their own CLI scripts.