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:
The Page Object pattern
April 10, 2012 @ 09:05:39

On DZone.com today there's a new tutorial from Giorgia Sironi giving an example of working with the PageObject pattern and how it's implemented to help with testing in the PHPUnit_Selenium plugin.

In the realm of acceptance testing, a possibility for hooking into the application and exercising it end-to-end is to work through a user interface, which nowadays is in more and more cases web-based. The Page Object pattern is a way to model pages (intended as screens) of a web application as independent objects, and give them several responsibilities.

The pattern sets up the resources to let you make queries against the page's contents, interacting with elements on the page, running common assertions on the contents and moving around on the site. He gives a more practical example of it in action (again, using PHPUnit_Selenium) to test a login page and evaluate a successful login.

0 comments voice your opinion now!
pageobject designpattern phpunit selenium unittest tutorial


blog comments powered by Disqus

Similar Posts

Stefan Koopmanshcap's Blog: Installing the Geoip PECL package for Zend Server on OSX

phpPatterns.com: Creating XUL applications with PHP

NetTuts.com: How to Use the Nettuts+ Phing Build Script

Matthew Weier O'Phinney's Blog: Setting up your Zend_Test test suites

Sebastian Bergmann's Blog: PHPUnit and Cyclomatic Complexity


Community Events

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


podcast opinion laravel extension php7 community framework api unittest series library language install xdebug example introduction interview laravel5 release voicesoftheelephpant

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