News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Matt Frost:
Using Selenium2 with PHPUnit
September 19, 2012 @ 11:44:20

In this new post to his site Matt Frost continues his look at using Selenium to test his applications (see the first parts here) and shows how to use the Selenium extension for PHPUnit to run all his tests from one place.

So I've taken it upon myself to do a bit of reading and messing around with the Selenium Extension for PHPUnit and I wanted to share a bit of what I learned. Looking around on the internet, I didn't find a whole lot of real good information on the Selenium2TestCase API so I want to provide a little bit of depth in some of those areas. I'm going to cover a few areas of interest and provide some code examples where relevant.

He includes the steps to get things set up to connect with the Selenium server and some of the common functions you can use to interact with its browser. He shows how to select items and interact with things like forms and links. He also includes a recommendation of using the "url()" method to jump to a point in the app instead of clicking through the same paths over and over again.

0 comments voice your opinion now!
selenium2 phpunit unittest functional test tutorial


blog comments powered by Disqus

Similar Posts

O'Reilly: Code As Data: Reflection in PHP

NETTUTS.com: Building a 5 Star Rating System with jQuery, AJAX and PHP

PHPMaster.com: Building a Domain Model - An Introduction to Persistence Agnosticism

Gary Hokin: An Introduction to Zend Framework 2 for the Zend Framework 1 Developer - Part 1

Oracle Technology Network: Installing PHP on Oracle HTTP Server 12c


Community Events

Don't see your event here?
Let us know!


introduction example language conference opinion project symfony framework laravel series list yii2 podcast api composer part2 community php7 application interview

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework