Željko Filipin's Blog on Software and Testing

Test like you do not need the money.

Archive for January, 2007

Roll your own Watir

without comments

Watir 1.5.1.1136 was released yesterday, but FileField#set does not work. They have fixed it, but it is not released yet. But still, you can use all those shiny new Watir methods.

How?!

Roll your own Watir using TortoiseSVN. Just make sure that you are logged in as administrator during installation. I am usually logged in as limited user, and to make it short, it does not work that way. Please, log in as administrator. If you can not, then I can not help you.

From Installing a Gem from the latest development source (Watir FAQ page).

Once TortoiseSVN is installed, checkout the source:

  1. Create a folder to checkout into, this will be the watir_install_dir
  2. Right click on watir_install_dir, from the context menu select SVN Checkout…
  3. In the dialog box enter http://svn.openqa.org/svn/watir/trunk/watir for the url
  4. Hit Ok, Watir source should now download into the watir_install_dir

Now that you have your own local copy of the source, you can create your own gem and install it into your local ruby gems directory. Open a command line, navigate to watir_install_dir and type the following:

gem build watir.gemspec

This will create a file that is named something like watir.1.5.1.1032.gem. The actual version number will be based on the latest revision number of the source in subversion.

You can install your gem simply by typing this in the same directory:

gem install watir

Some things are still broken. Like IE#minimize.

Why?! And I was so close…

Do not despair, you can fix that too (are you lucky or what?).

AutoIt is not registered. They say it should be, but it does not work on my machine.

Open a command line, go to folder where AutoItX3.dll is located. If you installed Ruby to C:\ruby\ and your gem name is watir-1.5.1.1141 it should be C:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.1.1141\watir\.

Type this.

regsvr32 AutoItX3.dll

Pop up will appear with message that registration was successful. If message says that registration was not successful, you are not logged in as administrator. Log out (or switch user) and log in as administrator. As I stated earlier, if you can not, then I can not help you.

Th-th-th-that’s all folks!

P.S.

You can unregister AutoIt with this if, for example, you have trouble with uninstalling Watir.

regsvr32 /u AutoItX3.dll

Written by Željko Filipin

January 11th, 2007 at 3:47 pm

Posted in Watir

Podcasts I Listen To Reloaded

without comments

I guess the list from my post Podcasts I Listen To would be better if there were a short description of (almost all) podcasts.

  • Agile Toolkit Podcast

    Agile Conversations

  • Gmail Podcast – Gmail tips and tricks
  • Hanselminutes

    Hanselminutes is a weekly audio talk show with noted web developer and technologist Scott Hanselman and hosted by Carl Franklin. Scott discusses utilities and tools, gives practical how-to advice, and discusses ASP.NET or Windows issues and workarounds.

  • Inside the Net – Renamed to net@nite, and boring since then. Listen only episodes 1-39.
  • IT Conversations
  • No Fluff Just Stuff Podcast

    The Best Technically focused Java/Agility/Open Source Event Series Anywhere

  • QA Podcast – To bad the last one is dated 2006-04-28.

    Expert conversations about the poor cousin of the software family.

  • Ruby on Rails Podcast

    News and interviews about the Ruby language and the Rails website framework.

  • Security Now!

    TechTV’s Leo Laporte and I [Steve Gibson] take 30 to 60 minutes near the end of each week to discuss important issues of personal computer security. Sometimes we’ll discuss something that just happened. Sometimes we’ll talk about long-standing problems, concerns, or solutions. Either way, every week we endeavor to produce something interesting and important for every personal computer user.

  • The Web Hosting Show

    Number One Web Hosting Podcast Across the Globe!
    The Web Hosting Show is a weekly podcast on and about the Web hosting industry. Used by Web hosts and Web hosting clients, this podcast has become a learning tool and resource for people to stay informed and to learn more about the Web hosting world.

  • The WordPress Podcast

    WordPress users helping other WordPress users
    The WordPress Community aims to please the blogging beginner, the blogging expert, and everybody in between by providing tips, tutorials, reviews, and the latest WordPress news.

  • WebDevRadio Podcast

    web development discussion

Written by Željko Filipin

January 10th, 2007 at 1:17 pm

Posted in Podcasts

Mailing Lists That I Read

without comments

Alphabetically.

  • agile-testing – Agile Software Testing

    In this group, we discuss how to test software in projects that are using an Agile style of development (http://www.agilealliance.org).

    We expect most members of the group to be independent testers working on an agile team. However, we’re open to discussions of other types of agile testing: developer testing, customer acceptance testing, and so forth.

    We would like most of the discussion to be specific:

    Q: “I am in situation X. I’ve run into problem Y. Does anyone have any advice?”

    A; “I was in a very similar situation last year. We tried Z, and it worked OK.”

    Generalities – “I think all agile projects should do Z” – are acceptable, but too many of those tend to drive away the practitioners.

    This is not a group to discuss whether such a thing as agile testing exists, whether agile software development is a good idea, whether XP is a nefarious plot by programmers to gain license for sloppiness, and so forth. We do not require list members to be agile enthusiasts (though the owners are), but we require them to acknowledge that people are testing in projects that call themselves agile, and that our group is about helping those people do the best job they can.

    The list owners will (gently at first, then forcibly) keep the signal-to-noise ratio acceptably high and the tone helpful.

    We allow job postings, but only if the post is from someone in the company looking for an Agile tester.

  • software-testing – Context-Driven Software Testing

    This forum is dedicated to the discussion and development of skilled context-driven software testing. The context-driven approach asserts that development and testing strategies and techniques are sometimes appropriate (useful, effective) and sometimes not, depending on the context. Through this forum, we hope to learn more about how to understand context, and about how context should affect our testing.

    The forum is hosted by James Bach and Cem Kaner.

  • wtr-general

    The wtr-general mailing focusses on using Watir for testing web applications, but actually questions and discussions about any aspect of using Ruby for testing are welcome. We’ll even tolerate the occassional bit of Perl. Postings for jobs using Watir are also welcome.

Written by Željko Filipin

January 9th, 2007 at 12:11 pm

Posted in Self Education