Archive for the ‘Ruby’ Category

FireWatir 1.2.1 is released

Sunday, August 17th, 2008

A new version of FireWatir has been released. This includes some fixes related to Firefox 3 but more importantly, it marks the merger of FireWatir and Watir projects, allowing for tighter coupling of methods and functionality between the two, allowing you to write less code =) To use FireWatir, you will ...

A New Project: just_add_watir

Friday, August 8th, 2008

In an effort to get more actively involved with the open source community, I've recently starting working with another colleague on a new site called justaddwatir.com. This is an exciting collaboration of examples for web application testing in ruby (watir - pronounced "water"). Watir is a simple open-source library for ...

HttpWatch, a Free Alternative Using Ruby

Tuesday, July 15th, 2008

When performance testing I often need to spy on TCP (http) traffic between the client and server on a frequent basis. This is pretty much a staple of any performance test script development effort. In the past I've relied heavily on trace options within LoadRunner and the like, but often find ...

Job Interview Question #11 - Summing Numbers

Tuesday, July 8th, 2008

I've recently started following a blog which sets weekly programming challenges. I'm getting sick of Nintendo DS brain training and thought I'd try something more relevant to my line of work. Also, this gives me a good opportunity to learn more about my favoured scripting language at present, which is ...

Just Another Framework - for developing watir test cases

Thursday, July 3rd, 2008

Recently I attended Railscamp 08 in Sydney Australia for a weekend of code, beer and bzflag. For my 'project' I decided on brushing up my my Ruby skills and constructing a simple framework from which I could structure watir test cases. Specifically I wanted to achieve the following: Create some form of ...

Establishing Mysql DB Connectivity from Ruby

Thursday, July 3rd, 2008

If you are a rails fan you will probably recommend using active record instead, but if you just want to hack away at your mysql db from within your Ruby code, you may find this handy... I'm currently using a wamp box to serve up content for performance metrics. What I ...

RailsCamp 08

Friday, June 27th, 2008

Went to the third RailsCamp held in a scout hall near Gosford NSW last weekend; my brain has just about got back to normal after 3 solid days of drinking and coding =) RailsCamp is a get together of mostly Rails developers, but also a fairly eclectic mix of Ruby hackers ...

Installing Firewatir on Mac OSX

Thursday, June 12th, 2008

By now you've probably heard of watir or Web Application Testing In Ruby, a great automation framework which supports Microsoft Internet Explorer, and recently came in at number 3 as a popular oss tool on this blog. I've been using this tool mostly from a windows box, and knew of the ...

Capturing Screenshots in Watir

Monday, June 2nd, 2008

Recently I noticed some discussion in the watir user group about trying to capture screenshots when running automated tests. For such a simple requirement, it's frustrating that solutions available either cost money (such as the purchase of SnagIt) or are a tad complicated in implementation requiring the installation of some out ...

Roll Your Own SiteScope, a Simple Alternative

Wednesday, April 23rd, 2008

In working with SiteScope of late, I've found that it doesn't always collect performance metrics the way I want to. More importantly, it can often turn a simple monitoring activity into a complex disaster. Take monitoring via JMX for example. In SiteScope, it has a rather complicated (and sometimes broken) ...

Monitoring Weblogic 9.2 with JMX and JRuby

Thursday, April 17th, 2008

After getting nowhere with lack luster HP support, I turned to the power of the Open Source community and got a very simple script up and running to remotely monitor Weblogic JVM Performance and JMS queues using JMX and JRuby. Despite having some initial issues with the code, the author of ...

[Bump] MyThree Bandwidth Usage Widget

Thursday, February 7th, 2008

Download it 'ere... I currently have a mobile broadband account (HSDPA) provided by three.com.au, and after a hexy surcharge from the previous month when exceeding my limit, thought it would be prudent to build a dashboard widget that tracks my monthly bandwidth usage. Building on a previous post that automates calls to ...

Custom TextMate commands for ruby and scp

Monday, October 1st, 2007

If you're a Mac user and you're not using TextMate, then hurry up and join the bandwagon. This is a powerful text editor for Mac OSX, which I use for just about any type of project be it C#, Java, PHP, Perl or even COBOL. What makes this tool so ...

Faking it! (UDP packets that is…)

Thursday, May 3rd, 2007

An associate of mine recently wanted a load script that could simulate thousands of UDP packets carrying a custom payload coming from different IP addresses. They were implementing a customised RFID solution that needed to simulate load from a lot of sources (think active RFID tags). There are many different ways ...