This was a presentation I gave in 10/2012 to the Spring Dallas User Group. It explains how to abstract page templates using configurable page instances in Geb. The code examples I presented are available at https://github.com/jhamit/geb-examples . Also, there will be additional updates to the examples as I work through them that will be explained on my blog (http://joshhamit.com).
2. Agenda …
This time we’ll cover how to leverage configurable page instances to abstract
page templates
• Quick Review of Geb: Save Time with Groovy Functional Testing
• Configurable Page Instances
• Code Examples
• Follow Up
Geb: Configurable Page Instances
October, 2012 2
6. Configurable Page Instances …
Web applications use templates. Our test scripts need to account for too.
Consider Twitter…
• The profile pages are based on templates
• So far we’ve only abstracted specific elements
• Do we write a test for every page?
Configurable Page Instances Let Us…
• Abstract our Page Models one level higher
• Save state about our Page Model
• This leads to behavior abstraction too!
Geb: Configurable Page Instances
October, 2012 6
8. Follow Up
Geb: Configurable Page Instances
October, 2012 8
9. Follow Up …
Does anyone have questions? Below is some information in case you think of
some later.
Follow Along…
• Twitter: @josh_hamit
• Blog: http://joshhamit.com
• GitHub: https://github.com/jhamit/geb-examples
• SlideShare: http://www.slideshare.net/jhamit
Geb: Configurable Page Instances
October, 2012 9