Tag Archives: Test Case Management

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 clear IE cookies on the command line

If you want to clear IE cookies on the command line, here’s what you’re after: RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2 More options available here: http://www.howtogeek.com/howto/windows/clear-ie7-browsing-history-from-the-command-line/ Bookmark to:

Posted in Making Life Easier | Tagged , , | Leave a comment

Find duplicate test names in ruby test::unit files

I’ve recently found a couple of instances of tests with the same test name in the same test::unit TestCase class. This is a bad thing, because the when the ruby interpreter reads the file in, it will ignore all methods … Continue reading

Posted in Automated Testing, Example Code, Making Life Easier, Ruby, Test Management, Test::Unit, Tools | Tagged , , , , , | Leave a comment

Quick and easy Watir test suites with Test::Unit

A test team usually has a need for a few fixed test suites, eg: a sanity suite or a suite which contains all tests for a full run. There’s usually also a need to be able to create suites with … Continue reading

Posted in Automated Testing, Example Code, Making Life Easier, Ruby, Test Management, Test::Unit, Tools, WATIR, agile | Tagged , , , , , , , , , | 2 Comments

How to print test names when executing Ruby Test::Unit tests

When I run my test_all.rb from the command line, I get ‘.’ when a test passes, but I don’t know which test it was that passed. I only get the names of tests that fail or error. Quite sensible – … Continue reading

Posted in Automated Testing, Making Life Easier, Ruby, Test Management, Test::Unit, Tools | Tagged , , , , | Leave a comment

Test Case Interdependency

One of the most common ways of structuring a series of test cases is to make one test case dependent on the outcome of another. For example, Test Case ‘A’ verifies the functionality surrounding the ability to create an account. … Continue reading

Posted in Automated Testing, Manual Testing, Mistakes, Test Management, Testing Theory | Tagged , | 1 Comment