Author Login
Post Reply
I'm trying to write a nice test harness for my QA team (rest api, httpbuilder, gpars, all the fun stuff).
Anyway, they want to use excel as the input format.. no biggie.
I'd like to find a useful way to do allow the QA folks to put a "code snippet" as a cell in excel.
So I get in this "snippet" as a String, and now I want to "run it".
I've thought of making a little DSL, with like:
assertContains result <some text>
But it would be easier(for me, lazy) do have them do
result.**.findAll { it.@(protected).
(i'm trying to save myself, some time, versus doing invokeMethod/methodMissing etc
Any thoughts? I've seen Graeme and others use GroovyShell(?) to convert JSON to Maps in examples, but can't find it now/remember the details.
I also say Venkat's use of object."${methodName}"() type stuff, but couldn't get it to work in this context
Thanks!
Roger
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email