Monthly Archives: February 2010

Uncategorized

connect to mysql with ruby

Often, when I begin a new gig, I have a few little tools I install to make my job that little bit more efficient.
One of these would be a wamp server and the ruby installer, along with the usual gems I often utilise. The wamp server is great to store data for scripts I’m writing, and a little ruby here and there never hurt anybody!
It occurred to me that I’d never actually blogged how to get ruby and mysql connectivity. As with anything ruby related, its easy but it does require a few key steps..
read more »

Uncategorized

javascript error when running selenium test suite

A strange problem occurred when I was running one of my selenium test suites. The test would run fine for my first testcase (that is, the first “method”). If you know a little about how selenium works, you’ll know that the teardown method is called after each method.
The teardown basically grabs any errors that occurs and kills the browser session, thus opening a new session in your next method. The issue that was occurring was this annoying JavaScript error being pulled from Internet Explorer, saying it cannot run scripts on the page. It halted my script and I had no way to get to the following methods…so after a little digging around I found a solution…
read more »