I didn’t think it would be this easy, but it’s working. I can now run a basic WatiN test on mac os x using mono.

The code is here http://code.google.com/p/mcwatin/. All credit to the WatiN guys, all I did was remove stuff :-)

Here’s what you need to get this running

Mono 2.4 and MonoDevelop preview for mac os x from here
The source code from http://code.google.com/p/mcwatin/
Firefox 3 with JSSH installed.

start firefox up with the following command line

/Applications/Firefox.app/Contents/MacOS/firefox -jssh

Then run the test. It will work but fail as exceptions are being thrown in the dispose method.

1. Get a subset of WatiN to compile with no PInvokes done

2. Get McWatiN to successfully start firefox. done

3. get McWatiN to run a basic test. done

4. Replace all the windows and IE stuff that was removed with code from Watir.

Building: McWatiN (Debug)

Building Solution McWatiN

Building: McWatiN (Debug)
Performing main compilation...

Build complete -- 0 errors, 0 warnings

---------------------- Done ----------------------

Build successful.

Two words that mean so much … this time they refer to WatiN built using MonoDevelop on Mac OS X.

1. Get a subset of WatiN to compile with no PInvokes done

2. Get McWatiN to successfully start firefox.

2. Replace all the windows and IE stuff that was removed with code from Watir.

My presentation at the Microsoft SDC open day alongside Devtest CEO Sarah Richey is now up on Microsoft’s site.

MePresentingAtMicrosoft.jpg

http://www.microsoft.com/australia/services/microsoftservices/sdc_openday.mspx

For my presentation you need to open the “How we do: Testing” video and I am in the last half following Sarah.