Skip to content
Chuckv edited this page Feb 16, 2013 · 2 revisions

Welcome to the TestFactory wiki!

TestFactory is a library designed to support two design patterns, Page Objects and Data Objects. Both are useful abstraction layers which make for cleaner, dryer and easier to maintain automation code for testing web pages and web applications.

Page Objects The idea behind the Page Object Pattern is that there should be one class that represents everything a web-page can do. If this object is used whenever any interaction with that page occurs, there will be just one place in test code that needs to be maintained whenever a page changes. This makes it far easier to maintain tests. Also because your other test code can refer to a logical name, it can make that code both cleaner and easier to read.

Data Objects The main goal of this pattern is to have objects inside your test code that can be used to maintain state and other information about objects your tests create and manipulate in the system under test. Examples might be users, accounts, shopping carts, etc. These objects can contain useful defaults, or randomly created values, which can be overridden when necessary. The objects also have methods for creating themselves within the system under test.

(to be continued)

Clone this wiki locally