SlideShare une entreprise Scribd logo
1  sur  9
Geb: Abstracting
Page Templates
Dallas, TX
October 2012




Discussion document – Strictly Confidential & Proprietary
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
Review




         Geb: Configurable Page Instances
                           October, 2012    3
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
Configurable Page Instances




                        Geb: Configurable Page Instances
                                          October, 2012    5
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
Code Examples




                Geb: Configurable Page Instances
                                  October, 2012    7
Follow Up




            Geb: Configurable Page Instances
                              October, 2012    8
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

Contenu connexe

Tendances

Tendances (11)

Object Oriented CSS - Joomla!dagen Nederland 2014
Object Oriented CSS - Joomla!dagen Nederland 2014Object Oriented CSS - Joomla!dagen Nederland 2014
Object Oriented CSS - Joomla!dagen Nederland 2014
 
CSS Grid
CSS GridCSS Grid
CSS Grid
 
BackboneJS
BackboneJSBackboneJS
BackboneJS
 
Developing your own Query Magic in SharePoint Search
Developing your own Query Magic in SharePoint SearchDeveloping your own Query Magic in SharePoint Search
Developing your own Query Magic in SharePoint Search
 
Strategy presentation for next iteration of GameZombie.tv
Strategy presentation for next iteration of GameZombie.tvStrategy presentation for next iteration of GameZombie.tv
Strategy presentation for next iteration of GameZombie.tv
 
RoR: What is it Good For?: Absolutely Something
RoR: What is it Good For?: Absolutely SomethingRoR: What is it Good For?: Absolutely Something
RoR: What is it Good For?: Absolutely Something
 
Jekyll and MrBlog
Jekyll and MrBlogJekyll and MrBlog
Jekyll and MrBlog
 
Web Designing
Web DesigningWeb Designing
Web Designing
 
Writing optimal queries
Writing optimal queriesWriting optimal queries
Writing optimal queries
 
Unobtrusive javascript
Unobtrusive javascriptUnobtrusive javascript
Unobtrusive javascript
 
Mastering asp.net mvc - Dot Net Tricks
Mastering asp.net mvc - Dot Net TricksMastering asp.net mvc - Dot Net Tricks
Mastering asp.net mvc - Dot Net Tricks
 

Similaire à Geb: Abstracting Page Templates

Forensic Theming - DrupalCon London
Forensic Theming - DrupalCon LondonForensic Theming - DrupalCon London
Forensic Theming - DrupalCon London
Emma Jane Hogbin Westby
 
Getting started with dev tools (atl)
Getting started with dev tools (atl)Getting started with dev tools (atl)
Getting started with dev tools (atl)
Thinkful
 
Dallas GUG Lift Presentation
Dallas GUG Lift PresentationDallas GUG Lift Presentation
Dallas GUG Lift Presentation
Brent Lemons
 

Similaire à Geb: Abstracting Page Templates (20)

Geb: Save Time with Groovy Functional Testing
Geb: Save Time with Groovy Functional TestingGeb: Save Time with Groovy Functional Testing
Geb: Save Time with Groovy Functional Testing
 
Devconf 2011 - PHP - How Yii framework is developed
Devconf 2011 - PHP - How Yii framework is developedDevconf 2011 - PHP - How Yii framework is developed
Devconf 2011 - PHP - How Yii framework is developed
 
Writing Maintainable Tests with PageObjects
Writing Maintainable Tests with PageObjectsWriting Maintainable Tests with PageObjects
Writing Maintainable Tests with PageObjects
 
Static Websites - The Final Frontier
Static Websites - The Final FrontierStatic Websites - The Final Frontier
Static Websites - The Final Frontier
 
'Using' github - coworking with Github
'Using' github - coworking with Github'Using' github - coworking with Github
'Using' github - coworking with Github
 
Why use Go for web development?
Why use Go for web development?Why use Go for web development?
Why use Go for web development?
 
Isolated React Js components
Isolated React Js componentsIsolated React Js components
Isolated React Js components
 
Stanislaw potoczny kra_qa_21.01.20
Stanislaw potoczny kra_qa_21.01.20Stanislaw potoczny kra_qa_21.01.20
Stanislaw potoczny kra_qa_21.01.20
 
Forensic Theming - DrupalCon London
Forensic Theming - DrupalCon LondonForensic Theming - DrupalCon London
Forensic Theming - DrupalCon London
 
Better Page Object Handling with Loadable Component Pattern
Better Page Object Handling with Loadable Component PatternBetter Page Object Handling with Loadable Component Pattern
Better Page Object Handling with Loadable Component Pattern
 
Getting started with dev tools (atl)
Getting started with dev tools (atl)Getting started with dev tools (atl)
Getting started with dev tools (atl)
 
To Patch or Custom: How to decide when to patch a contrib module or go custom...
To Patch or Custom: How to decide when to patch a contrib module or go custom...To Patch or Custom: How to decide when to patch a contrib module or go custom...
To Patch or Custom: How to decide when to patch a contrib module or go custom...
 
dmBridge & dmMonocle
dmBridge & dmMonocledmBridge & dmMonocle
dmBridge & dmMonocle
 
Creating Web Templates for SharePoint 2010
Creating Web Templates for SharePoint 2010Creating Web Templates for SharePoint 2010
Creating Web Templates for SharePoint 2010
 
The SEO Magic of Structured Data
The SEO Magic of Structured DataThe SEO Magic of Structured Data
The SEO Magic of Structured Data
 
Angular 2 vs React
Angular 2 vs ReactAngular 2 vs React
Angular 2 vs React
 
AngularJS Beginners Workshop
AngularJS Beginners WorkshopAngularJS Beginners Workshop
AngularJS Beginners Workshop
 
Dallas GUG Lift Presentation
Dallas GUG Lift PresentationDallas GUG Lift Presentation
Dallas GUG Lift Presentation
 
Lessons Learned Migrating from Jekyll to Next.pptx
Lessons Learned Migrating from Jekyll to Next.pptxLessons Learned Migrating from Jekyll to Next.pptx
Lessons Learned Migrating from Jekyll to Next.pptx
 
Web Components at Scale, HTML5DevConf 2014-10-21
Web Components at Scale, HTML5DevConf 2014-10-21Web Components at Scale, HTML5DevConf 2014-10-21
Web Components at Scale, HTML5DevConf 2014-10-21
 

Geb: Abstracting Page Templates

  • 1. Geb: Abstracting Page Templates Dallas, TX October 2012 Discussion document – Strictly Confidential & Proprietary
  • 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
  • 3. Review Geb: Configurable Page Instances October, 2012 3
  • 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. Configurable Page Instances Geb: Configurable Page Instances October, 2012 5
  • 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. Code Examples Geb: Configurable Page Instances October, 2012 7
  • 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