Adventures In Real Life
Tuesday, June 13, 2006
Playing in WATIR
I know I haven't posted alot lately. In part because I still haven't gotten my laptop back, not having it with me makes it hard to write blog post when the thought hits me. So I apologize for that.
Lately at work Testing has been a big part of what I've been working on. Of course as a programmer I never want to do the same thing twice, even when testing. So we use NUnit to test the code we write however the user interface has always been a difficult beast to try and test. There were a few things out there, but they basically were HTTP recorders. They recorded your actions at the HTTP level and not at the user/browser level. So I kind of gave up on them and gave in to the fact that I would have to do all my user interface testing manually. I wasn't happy about it, but it was what it was.
Well about three weeks ago I was listening to a back epoisode of
Hanselminutes
and Scott Hanselman was talking about
WATIR
(Web Application Testing In Ruby). Well Scott isn't one to use tools that don't work, so I gave WATIR a try. It is brilliant. I can't say enough good things about this tool. WATIR basically is a Ruby wrapper around the IE DOM. So you are scripting out what is going on inside the browser. There is the minor issue of having to learn Ruby. Believe me it is a minor issue. The examples and documentation that come with WATIR will have you writing tests in no time. Honestly I think that my first test was written and working in under 10 minutes.
What is so nice about WATIR is it seems to use the same pholisiphy as Ruby. David Hienemeier Hansson, puts it really well in the
6/2006 issue of Linux Journal
"
Ruby is more than anything else, a language for writing beautiful code that makes programmers happy.
After writing and running your first WATIR test you will be happy.
General
|
Programming
|
Technology
6/13/2006 10:04:53 AM (Pacific Daylight Time, UTC-07:00)
Comments [0]
Name
E-mail
Home page
Remember Me
Comment (HTML not allowed)
Enter the code shown (prevents robots):
© Copyright 2009 Russell A. Kelly
Theme design by
Bryan Bell
newtelligence dasBlog 1.8.5223.1
|
|
| Page rendered at 1/6/2009 3:35:45 AM (Pacific Standard Time, UTC-08:00)
On this page....
<
January 2009
>
Sun
Mon
Tue
Wed
Thu
Fri
Sat
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
7
Search
Contact
Russell Kelly
I'm a Sr. Web Developer with 10 years of experience in Web Development.
About Me
Navigation
Home
Top 5 Technical Posts
Top 5 Family Posts
Categories
Apple
Art
Cars
Family
Funny
General
health
Motorcycles
Music
Photography
productivity
Programming
Rant
Technology
Blogroll
43 Folders
Chardy
The Adventures of Chardy
Coding Horror
Dad Gone Mad
Infinities Loop
David Reed explains how ASP.NET really works.
Joel on Software
Life Reboot
Lifehacker
Tech tricks, tips and downloads for getting things done
Photos of Real Life
PixieStitch
Yes, She's back and rock'n you sewing world
Scott Guthrie's Blog
Scott Hanselman
Super Green
A movement to invoke the City of Los Angeles and the State of California to take action on the pollution problems, particularly in the L.A. River and Bologna Creek
The Kneeslider
All things on two wheels
The Wayward WebLog
Tim Ferriss
Author of the four hour work week
Worst Than Failure
Zen Habits
Sign In