Tag Archives: IronRuby

IronRuby vs. Gherkin – a temporary fix

IronRuby doesn’t currently work with the latest versions of cucumber. This is a known bug and is a real pain. There is a work around, and it’s kinda rubbish: don’t use any versions of cucumber > 0.6.3. After that version, … Continue reading

Posted in IronRuby, Making Life Easier, Ruby, Tools, cucumber | Tagged , , , , | Leave a comment

Announcing ‘bewildr’ – test your WPF UI apps with IronRuby

Get it here: http://www.bewildr.info After writing an automation framework to test a WPF GUI using IronRuby and White, I decided to write a ruby-specific gem for automating WPF UI tests. Kinda like Watir, but for WPF instead of the web. The … Continue reading

Posted in Automated Testing, Example Code, IronRuby, Tools, bewildr | Tagged , , , , , | 3 Comments

Programmatically take screenshot in IronRuby

After figuring out how to take a screenshot using .Net, I translated the C# I came up with to IronRuby. Now, when any of my IronRuby-powered tests fail, I take a screenshot – saves loads of time when trying to … Continue reading

Posted in Example Code, IronRuby, Test Management | Tagged , , , , | 2 Comments

How to connect to an Oracle database in IronRuby

After spending a few hours trying to connect to an oracle database in ironruby using various gems, I gave up. None of the gems out there would work, each for a different reason. It was time to write my own … Continue reading

Posted in Example Code, IronRuby, Making Life Easier, Ruby, Test Data, Tools | Tagged , , , , | 2 Comments

Remove junk from IronRuby cucumber output

When running cucumber tests under IronRuby, your output will be full of junk like the following: Feature: example feature Scenario: a scenario←[90m     # features\testoutput.feature:3←[0m ←[32mGiven some test setup←[90m  # features/step_definitions/output_steps.rb:1←[0m←[0m ←[32mWhen I do something←[90m    # features/step_definitions/output_steps.rb:5←[0m←[0m ←[32mThen something happens←[90m # … Continue reading

Posted in Automated Testing, IronRuby, Ruby, Tools, cucumber | Tagged , , , , | Leave a comment

How to test a WPF app using IronRuby and White

—UPDATE— Since I wrote this post, I have put together a ruby gem designed for testing WPF UIs called ‘bewildr’. I wrote up an introductory post about bewildr here. Bewildr removes the need for using White – it’s written in … Continue reading

Posted in Automated Testing, Example Code, IronRuby, Making Life Easier, Ruby, Test::Unit, Tools, bewildr, white | Tagged , , , , , , , , | 1 Comment