Red Green Repeat Adventures of a Spec Driven Junkie

Journey to TDD - Test Web Applications with Selenium

If you found this article and want to start at the beginning, this series starts here.

With a legacy system puzzle, start by adding a test that validates the core functionality system stakeholders know as this is the feature most critical to the system that everyone understands.

Where to start? Especially if the feature is so complicated or only testable using: “smoke tests”??

Legacy systems not only provide an additional challenge over testing first, it’s also figuring out how to test!

The older the system, the more immense the challenge.

For any web application, my goto is: Selenium. It’s a browser automation tool where one can programmically control the browser. Sending inputs, receiving outputs, controlling any part of the browser (even drag and drop!)

Selenium is good that it will working with any web application, it’s also bad because you have to write the tests in a verbose manner. This is a feature of selenium that can go both ways.

What if the application you have is a command line application??