Testing the web - a new hope

By on (tags: fluent, testing, categories: tools, web)

There are plenty of ways to test web apps, but most of them require a cumbersome setup and a lot of tools installed and I’m just too lazy to do that. But I just found something that may work in my favour.

The fact that I will need something more than unit tests for web apps is obvious – I just didn’t have the time/urge/heart to set up ‘the whole machine’. I’ve had some experience in the past with automated web testing tools. They were big, heavy, expensive and reliability was an issue. Then came selenium – not expensive (well, free – it’s as cheep as it gets), but if it’s heavy or not – to be honest I don’t know. I know selenium only from the theoretical perspective – no practice whatsoever.

But recently I stumbled upon Fluent. It comes in 2 nuget packages FluentAutomation.Core and FluentAutomation.SeleniumWebDriver. There’s also a third one – WatiN but I haven’t checked it yet and I don’t think I will – the docs say that selenium driver is the recommended way – I’ll just stick with that.

To get started – just install the SeleniumWebDriver package, create a unit test project and use this code:

No heavy installs, everything comes in nugets and the API is well, poetic .

I’m keeping my fingers crossed that there won’t be too many problems when trying to run this on the build server, though my gut tells me that I’ll struggle a bit. One thing’s for sure, I’ll need to use the IE driver.