Techno Logica


Thursday, August 28, 2014

Automation of Web-based Apps using Groovy

What is Groovy?

Groovy is a modern, dynamic, general-purpose scripting language that runs on the Java Virtual Machine (JVM). Its based on Java and is considered a superset of Java, however it has some differences. It inter-operates with other Java code and libraries.

The below link give a kick start to the language:
http://www.oracle.com/technetwork/articles/java/groovy-1695411.html

Download Groovy

There are many ways to test Web Applications with Groovy:

use Groovy (potentially in conjunction with a specialist HTML parser) to parse HTML pages as if they were XML
use Groovy to simplify the code required to drive a Java API browser simulator, e.g. HtmlUnit or HttpUnit
use Groovy to simplify the code required to drive a Java API for manually driving a real browser, e.g. IE or Firefox
use Groovy to interact with a higher-level testing library which uses one of the above two approaches, e.g. Watij (for the equivalent of Watir in the Ruby world) or WebTest (to open up the possibility of testing more than just web applications)

No comments: