Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Introduction to GEB & SPOCK Automation

3,096 views

Published on

Geb + Spock are add-ons to Selenium WebDriver that simplify the development of page-object automation framework for any web project.
With WebDriver's powers under the lead /control of Spock framework you can create automation solution suitable both for inexperienced manual tester and a skilled developer.
Find out what are the benefits and drawbacks of using Geb + Spock when developing an automation solution for web projects from this slideshow.

Skelia is a ICT and BPO services company, helping you achieve growth by extending your business with dedicated teams, outsourcing processes and providing consultancy on a wide range of technologies.
http://skelia.com/

Stay tuned for more useful materials:
https://twitter.com/Skelia_company
https://www.facebook.com/Skelia.company
http://www.linkedin.com/company/2851166

Published in: Software
  • Be the first to comment

Introduction to GEB & SPOCK Automation

  1. 1. Introduction to GEB & SPOCK automation by Chubey Oleksiy Test Automation Engineer
  2. 2. NEW AUTOMATION FRAMEWORKS? WHY? Geb Page Object out from the box Easy to define search patterns Wait clause for any search pattern Groovy language WebDriver Cross browser support Total control over code More programming efforts Java language
  3. 3. WHAT IS GEB? Power of WebDriver Elegance of jQuery Robustness of Page Object Expressiveness of Groovy
  4. 4. Cross Browser support Desktop browsers: Mobile OS:
  5. 5. jQuery-like API
  6. 6. Simple Geb code example <form class="search-form" action="//www.wikipedia.org/search-redirect.php"> <input id="searchInput" name="search" type="search" … > <input class="formBtn" type="submit" … name="go"> </form> ---------------------------------------------------------------------------------------- import geb.Browser Browser.drive { go "http://www.wikipedia.org/" $(“input”, id: ‘searchInput’).value(“Geb“) $(“input”, name: ‘go’).click() }
  7. 7. Simple Page Object example
  8. 8. Simple Module usage
  9. 9. Architecture
  10. 10. WHY DO WE NEED SPOCK? Informative Extendability Compatibility
  11. 11. Simple Spock Specification example
  12. 12. Parameterized Test
  13. 13. Assertion results
  14. 14. Geb official page: http://www.gebish.org/ Geb manual: http://www.gebish.org/manual/current/intro.html Spock official page: https://code.google.com/p/spock/ Spock manual: http://docs.spockframework.org/en/latest/ Spock groovydoc: http://spockframework.github.io/spock/groovydoc Geb+Spock example(Gradle configuration as a bonus): https://github.com/geb/geb-example-gradle SOMETHING TO START WITH AKA USEFUL LINKS:
  15. 15. THANK YOU Got questions? Write to us: info@skelia.com skelia.com Oleksiy Chubey Test Automation Engineer

×