I am planning to test my Java-based web application using its programming interfaces. To this aim, I intend to call my session beans using their RMI/WebService interfaces and check if their supported services are correct or not. To do this, I need a scripting language to:
- Call my RMI/WebService interfaces
- Execute SQL statements (e.g. for cleaning the DB at first)
- Have a simple flow control (loops, conditions, etc. )
- Be easy to understand. I may ask my non-programmer staff to write test scripts
I am planning to use Groovy to this aim. Is there any better suggestion or alternative for Groovy?
Edit 1
Other introduced alternatives to Groovy mentioned in answers are JRuby and RSpec. Is there any comparison for them on the web?