If you’re taking an agile approach to software development, it’s highly likely you’ll be using test first development practices in order to test the programming logic that has been written.
Unit testing is great for exercising the various components under the bonnet of the application but it doesn’t really help in terms of testing the interface that an end user will encounter. Functional testing is important, as it allows you to verify that the interface to your application is behaving as expected and could potentially trap any errors that have not been caught by unit testing.
selenium is a tool for testing web applications from the Browser or via a FireFox plugin.
The Selenium IDE allows you to record test scripts which can automate the testing of a web application interface. For example, I could record the actions of logging into an application and then then clicking through to some feature and perhaps entering and saving some data. I could then assert that the output from those actions meets my expectations, very similar to how unit testing frameworks work.
The great thing about all of this is that it removes most of the tedium in testing your application when you are developing and debugging. Most importantly, you have a set of repeatable and consistent tests that can be performed at the click of a button. Better yet, Selenium also has a remote control server which lets you execute tests from API’s covering Java, Ruby, PHP, .NET and Perl. The advantage of this approach is you write your functional tests in your preferred programming language and maybe execute them as part of a continuous integration process.
So what are you waiting for? Go try it out!
Unit testing is great for exercising the various components under the bonnet of the application but it doesn’t really help in terms of testing the interface that an end user will encounter. Functional testing is important, as it allows you to verify that the interface to your application is behaving as expected and could potentially trap any errors that have not been caught by unit testing.
selenium is a tool for testing web applications from the Browser or via a FireFox plugin.
The Selenium IDE allows you to record test scripts which can automate the testing of a web application interface. For example, I could record the actions of logging into an application and then then clicking through to some feature and perhaps entering and saving some data. I could then assert that the output from those actions meets my expectations, very similar to how unit testing frameworks work.
The great thing about all of this is that it removes most of the tedium in testing your application when you are developing and debugging. Most importantly, you have a set of repeatable and consistent tests that can be performed at the click of a button. Better yet, Selenium also has a remote control server which lets you execute tests from API’s covering Java, Ruby, PHP, .NET and Perl. The advantage of this approach is you write your functional tests in your preferred programming language and maybe execute them as part of a continuous integration process.
So what are you waiting for? Go try it out!
No comments:
Post a Comment