News Feed
Sections




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

DZone.com:
PHPUnit_Selenium
January 20, 2012 @ 09:12:18

On DZone.com today Giorgio Sironi has a quick tutorial showing you how to set up and use the PHPUnit_Selenium component in the latest releases of the popular testing software.

With the 1.2 release, PHPUnit_Selenium supports (basically) for the first time the Selenium 2 WebDriver API. While PHPUnit_Selenium already worked with Selenium 2, it did so only by using the Selenium 1 emulation included in the jar; now it provides an object-oriented API right natively supported in a base PHPUnit test case, shipped in PHPUnit's PEAR channel.

He includes the steps you'll need to pull it from the PEAR channel and how to set up a test case based on the PHPUnit_Extensions_Selenium2TestCase object. He gives a few examples of how to select various components on the page (via CSS selectors and XPath), assert that the right information is there and interact with forms.

0 comments voice your opinion now!
phpunit selenium install unittest tutorial example select interact


blog comments powered by Disqus

Similar Posts

Pear-Code-Authors.com: Installation of a local PEAR copy on a shared host

PHPMaster.com: Explore Aspect Oriented Programming with CodeIgniter, Part 3

DevShed: Introducing the Facade Pattern in PHP 5

Smashing Magazine: Create A Christmas Wish List With PHP (For Beginners)

Sebastian Bergmann's Blog: PHPUnit 3.0 Beta 3


Community Events





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


zendserver list podcast library framework laravel deployment api release bugfix tips developer opinion series threedevsandamaybe interview community introduction language symfony

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