Groovy...
- is an agile and dynamic language for the Java Virtual Machine
- builds upon the strengths of Java but has additional power features inspired by languages like Python, Ruby and Smalltalk
- makes modern programming features available to Java developers with almost-zero learning curve
- supports Domain-Specific Languages and other compact syntax so your code becomes easy to read and maintain
- makes writing shell and build scripts easy with its powerful processing primitives, OO abilities and an Ant DSL
- increases developer productivity by reducing scaffolding code when developing web, GUI, database or console applications
- simplifies testing by supporting unit testing and mocking out-of-the-box
- seamlessly integrates with all existing Java objects and libraries
- compiles straight to Java bytecode so you can use it anywhere you can use Java
Experience the latest Groovy 1.5
Groovy 1.5, the latest major and stable version of the popular dynamic language for the JVM, has been released. In a nutshell, it brings new features like Java 5 annotations, generics and enums, it provides significant performance gains, new meta-programming capabilities, new and improved tooling support like the new joint Groovy/Java compiler, the new interactive shell, or the Groovy Swing console, and a few other additions in its syntax, like the new Elvis operator or the ability to omit parentheses in methods with named arguments to make DSLs even more readable. InfoQ covers the novelties in this new milestone of the project. With all these improvements and new features, don't waste a single second, go download Groovy 1.5 and give it a try.
Groovy, an award-winning creative and innovative project

JAX is the most important Java conference in Germany. Every year, the organizers are running a contest to select the most innovative and creative projects. From over 40 proposals, the jury selected only ten nominees. Although great projects were selected, like the Matisse GUI builder in NetBeans, or the Nuxeo Enterprise Content Management solution, Groovy won the first prize! It is a great honor and a huge pleasure for us to receive such a prize, especially knowing the cool projects we were competing with, or the past winners like the Spring framework.
Dierk König, author of the best-selling "Groovy in Action" book, received the prize in the name of the Groovy community, after having presented several sessions on Groovy at this conference. This award proves and reaffirms how innovative, creative and influential the Groovy project is for the Java community.
Documentation [more]
Modules [more]
The following modules and contributions are currently available:
- COM Scripting — script Windows ActiveX and COM components with Groovy
- Gant
- GFreeMarker — an integration of the FreeMarker template engine for Groovy
- GMaven — GMaven provides integration of the Groovy language into Maven.
- Google Data Support — makes using the Google Data APIs easier from within Groovy
- Gram — a simple xdoclet-like tool for processing doclet tags or Java 5 annotations
- GraphicsBuilder — GraphicsBuilder is a Groovy builder for Java 2D
- Grapplet
- Griffon — Dekstop Enhancements for Groovy
- Groosh — Provides a shell-like capability for handling external processes.
- Groovy Jabber-RPC — allows you to make XML-RPC calls using the Jabber protocol
- GroovyLab — Provides a domain specific language (DSL) for math engineering (matlab-like syntax).
- Groovy Monkey — is a dynamic scripting tool for the Eclipse Platform
- GroovyRestlet — Groovy DSL for constructing Restlet application
- Groovy SOAP — create a SOAP server and make calls to remote SOAP servers using Groovy
- GroovySWT — a wrapper around SWT, the eclipse Standard Widget Toolkit
- GroovyWS — GroovySOAP replacement that uses CXF and Java5 features
- GSP — means GroovyServer Pages, which is similar to JSP (JavaServer Pages)
- GSQL — supports easier access to databases using Groovy
- JideBuilder — JideBuilder is a Groovy builder for the open source JIDE Common Layer
- Native Launcher — a native program for launching groovy scripts
- Proxy-o-Matic — Proxy-o-Matic lets you create dynamic proxies fast and in an homogeneous way
- Windows NSIS-Installer — a Windows-specific installer for Groovy
- Windows Services — framework for Groovy-based WinNT (Windows) Services
- WingSBuilder — WingsBuilder is a Groovy builder for the wingS Framework
- XMLRPC — allows you to create a local XML-RPC server and/or to make calls on remote XML-RPC servers
- Grails — a Groovy-based web framework inspired by Ruby on Rails
- GORM — the Grails Object-Relational Mapping persistence framework
- GroovyPlugin — A Groovy plugin for JSPWiki
- OCM Groovy — A Object Content Mapping implemented in Groovy leveraging the Java Content Repository (JCR)
- Tellurium — A test framework built on top of the Selenium test framework implemented in Groovy
Enjoy making your code groovier !!!!
Latest news
If you wish to stay up-to-date with our vibrant community, you can learn more about:
- the latest posts from our mailing-lists
- the latest commits to our SVN trunk
- the buzz around Groovy in the blogosphere
And below, you will find the latest announcements:
For more details on whats included in this release please see the release notes:
Tellurium 0.4.0 is out today. This release includes a lot of new features and enhancements such as data driven testing, framework configuration, and JUnit 4 support.
Tellurium is built on top of Selenium and tries to solve the shortcomings for Selenium., i.e., XPath everywhere, not robust, "record and reply" style, difficult to refactor and maintain. Tellurium provides you a totally different way to write Selenium tests.
The following are the main features for Tellurium:
1) Tellurium is not a "record and reply" style testing framework, but UI module centric. That is to say, you should define your UI module first. Based on your Ui module, you can write as many tests as you like just like writing JUnit tests. Tellurium also make it possible for users to write Tellurium tests when they start coding.
2) Tellurium uses very expressive way to define Ui Modules and writes tests. For example, in Selenium, you have to write the following ugly expressions (take Google start page as an example):
selenium.type("//input[@title='Google Search']", input)
selenium.click(""//input[@name='btnG' and @type='submit']")
In Tellurium, you can first define the UI module as:
ui.Container(uid: "google_start_page", clocator: [tag: "td"], group: "true"){
InputBox(uid: "searchbox", clocator: [title: "Google Search"])
SubmitButton(uid: "googlesearch", clocator: [name: "btnG", value: "Google Search"])
}
Then in your tests, you simple use
type "google_start_page.searchbox", input
click "google_start_page.googlesearch"
3) Tellurium is compatible with Selenium's locators, you can still use XPath like "//input[@title='Google Search']" in your UI module, but Tellurium give you additional advantage to use "google_start_page.searchbox"style syntax to refer the UI object instead of putting the XPath expressions everywhere.
4) Tellurium recommends you use composite locator, i.e., use UI object attributes instead of XPath to define the UI. For example, in the above example, you specify an InputBox object with its attribute title to be "Google Search". Once you define UI attributes, Tellurium will automatically create the runtime XPath for you. In this way, the UI module matches better with your UI markup languages such as JSP and ASP.
5) Tellurium exploits the "Group Locating" concept to treat a group of Ui Object as a whole instead of individual ones, which is the case for Selenium. In the above example, by specifying the "group" attribute to be "true", Tellurium will try to locate the UI objects in the DOM using all information from the Container, InputBox, and SubmitButton. This can help us a lot to find the UI locators. For most case, the information inside the group of UI objects is enough to locate all of them. That is to say, your Ui module only depends on attributes inside of itself, not any UI outside. As a result, make it very robust.
6) Tellurium provides many predefined UI objects for you to use directly, such as Button, CheckBox, InputBox, Selector, TextBox, and Table. In the meanwhile, it also provides you the capability to write your own custom UI objects.
7) Tellurium supports Domain Specific Language (DSL) for Web testing and you can even write all your tests in pure DSL scripts.
8) Tellurium comes with the "Data Driven Testing" feature so that you can use an input file to drive your predefined tests. One such example file is listed as follows:
##Data for test "checkBookList"
##TEST | CATEGORY | SIZE
checkBookList|Fiction|8
checkBookList|Fiction|3
##Data for test "getGCHStatus"
##TEST | LABEL | Row Number | Column Number
getGCHStatus |Example project labels:| 3 | 6
getGCHStatus |Example project| 3 | 6
Where the TEST column defines your test name and the rest columns are either input data or expected results.
9) Tellurium provides detailed documents on how to use Tellurium including introduction, tutorials, user guide, and FAQs. We also use Tellurium project website as an example to demonstrate how to write real world Tellurium tests.
Tellurium project web site is at:
http://code.google.com/p/aost/
and the user group is at:
http://groups.google.com/group/tellurium-users
You are welcome to try out Tellurium and feel free to join our user group and provide us your valuable comments and suggestions.


Comments (3)
Apr 23
Vimal Kansal says:
Hi, I am unable to get the example that you have posted on InfoQ for using the ...Hi,
I am unable to get the example that you have posted on InfoQ for using the tripple dot notation of variable args list. i.e I cut and pasted the following code
into groovyconsole and I get the following:
Am I missing something?
Thanks
Vimal
Apr 23
Viktor Hugo Morales says:
Vimal, int sum(int someInts = 5) assert sum(1) == 1 assert sum(1, 2) == 3 a...Vimal,
I tried it, but now i get another error:
groovy.lang.MissingMethodException: No signature of method: java.lang.Integer.size() is applicable for argument types: () values: {} at Script14.sum(Script14:3) at Script14.run(Script14:8)Apr 23
Paul King says:
Vimal, try this: int sum(int... someInts) assert sum(1) == 1 assert sum(1...Vimal, try this: