Geb: Abstracting Page Templates

432 views

Published on

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).

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
432
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
2
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Geb: Abstracting Page Templates

  1. 1. Geb: AbstractingPage TemplatesDallas, TXOctober 2012Discussion document – Strictly Confidential & Proprietary
  2. 2. Agenda …This time we’ll cover how to leverage configurable page instances to abstractpage 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
  3. 3. Review Geb: Configurable Page Instances October, 2012 3
  4. 4. Review …Last time we covered how a successful workflow for developing functional tests• Introductions• Interactive Shell – Basic setup – Syntax Overview• Page Abstraction – Overview – Modules – Functions• Functional Testing• Recap and Questions Geb: Configurable Page Instances October, 2012 4
  5. 5. Configurable Page Instances Geb: Configurable Page Instances October, 2012 5
  6. 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
  7. 7. Code Examples Geb: Configurable Page Instances October, 2012 7
  8. 8. Follow Up Geb: Configurable Page Instances October, 2012 8
  9. 9. Follow Up …Does anyone have questions? Below is some information in case you think ofsome 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

×