{"id":510,"date":"2015-06-17T09:39:08","date_gmt":"2015-06-17T09:39:08","guid":{"rendered":"http:\/\/www.gallop.net\/blog\/?p=510"},"modified":"2022-07-28T14:39:42","modified_gmt":"2022-07-28T09:09:42","slug":"pragmatic-test-automation-with-geb-2","status":"publish","type":"post","link":"https:\/\/www.cigniti.com\/blog\/pragmatic-test-automation-with-geb-2\/","title":{"rendered":"Pragmatic Test Automation with GEB"},"content":{"rendered":"

Geb is a Web automation framework using Groovy. It is basically a wrapper over Selenium and provides lots of functionalities making the job of test automation easy and quicker. In this post we talk about Geb & Spock (Groovy) automation framework based on our deep experience in implementing test automation solutions across technologies. Needless to say, GEB helps jumpstart test automation with all the cutting edge automation features ready.<\/p>\n

By using GEB & SPOCK framework since the beginning, one can definitely gain advantage over typical Selenium Webdriver Frameworks implemented in Java. There are a few major issues with Selenium WebDriver which results in test architects using Groovy automation framework over it. Below are few suggestions to be kept in mind before using Java for Test Automation:<\/p>\n

    \n
  1. Java is verbose<\/strong>, sophisticated and language heavy. It can be arguably said that it might be an overkill to use Java for test automation.<\/li>\n
  2. But Java is Powerful: <\/strong>On the other hand, Java is extremely robust and powerful with tons of features like OOPS, which cannot be used\/ implemented holistically in the scripting languages.<\/li>\n
  3. Unmatched Open Source Support<\/strong>: Java being one of the most popular web languages, has virtually unlimited support for third party open source tools\/utilities and APIs which may remain unused if we step away from Java.<\/li>\n<\/ol>\n

    It\u2019s a catch 22. We want to leave Java being an overkill for test automation, but at the same time we want to keep using it because it is full of features and comes with an unmatched open source support. So is there a way, we can use Java without actually using Java?<\/p>\n

    Answer is Yes, <\/strong>Groovy.<\/strong> Groovy offers:<\/p>\n