O'Reilly logo

PHPUnit Essentials by Zdenek Machek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12. Functional Tests in the Web Browser Using Selenium

In the previous chapter, we mentioned Selenium as one of the options for testing legacy code. Also, we have seen a few tricks that might help us to test legacy code. However, all of the suggested methods were just ways of overcoming problems with badly written code.

There is one method that will test any web application—old or new, legacy or latest development—and it doesn't matter how it works, but rather what it does. Yes, this is functional testing where we are not even trying to isolate the tested code but are trying to test it as it is.

To get as close as possible to a real user experience, you can run tests in the web browser and simulate user activity. As we are writing web applications, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required