I’ve been using a super-cool application in the development of Nett 30 that’s let me automate a lot of the tedious functional testing that is needed after every change in the application.
You know what I mean – you make a change to the code and you’re sure everything will work correctly, however, you still have to manually click through every function of the app in the web browser and test to ensure it’s solid and ready for users. This takes a lot of time and effort – and the more complex your app gets, the more time and effort it takes!
“Functional testing” AKA “When users click around mp app, does it still work as expected?” is the process of ensuring your application functions as expected in the users web browser.
There must be an easier way right… well there is, and I’m pretty sure I was drooling when I found it…
The application is called Selenium and quoting their website: “Selenium is a Firefox add-on that records clicks, typing, and other actions to make a test, which you can play back in the browser.”
If you’re an ASP.NET MVC developer (or any web developer really), you need to be using Selenium. Here’s what it’s done for us, and hopefully what it can do for you:
1) Every little change we make to the code, we test with Selenium immediately. If the tests pass, we move on to the next change. This gives us piece of mind that we’re not building bugs on top of bugs.
2) Every release we do we check with Selenium - then do a manual human test as well. This gives us huge comfort that the release will function as expected for users.
3) We’re finding it’s saving us 50% of the time we used to use with functional testing and it costs us nothing! We used to have to human-test the app regularly during development of a feature, not that’s not really necessary – all we do is human-test when the feature is complete and use Selenium for minor testing.
4) I sleep a whole heap better :)
Selenium is not just a Firefox plug-in however. You should also download the Selenium Remote Control that allows you to run your tests automatically in different browsers and also modify the tests. Selenium also exports your tests as C# so you can integrate them in your Visual Studio testing workflow and control them from there.
Remember Selenium is not an entire replacement for human testing but it does eliminate a lot of the human testing you have to do.
All in all, if you’re developing for the web you owe it to yourself to try Selenium – it’s totally free and it might just be the best thing since sliced bread? Let me know what you think :)
Link to Selenium: http://www.seleniumhq.org
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5
ASP.NET MVC