[Webtest] Groovy Step (XML/Groovy)

Pfau, Matthias Pfau, Matthias" <map@zuehlke.com
Fri, 25 Jul 2008 16:56:39 +0200

after a few hours I finally gave up. I simply do not understand why one
testcase works as XML and not as Groovy-Code. The XML looks like:
	<?xml version=3D"1.0"?>
	<!DOCTYPE project SYSTEM "../dtd/Project.dtd">
	<project default=3D"test">
	 <target name=3D"test">
	  <webtest name=3D"check the groovy evaluation">
			print 'methods of step:'
			print step.class.methods.name   =20

The Groovy-Code looks like:
	import com.canoo.webtest.WebtestCase
	class SimpleTest extends WebtestCase {
	  void testWebtestOnGoogle() {
	    webtest("check Groovy evaluation") {
		    groovy {
				print 'methods of step:'
				print step.class.methods.name

testWebtestOnGoogle(SimpleTest)groovy.lang.MissingPropertyException: No
such property: step for class: SimpleTest

I tested against the latest build. Any ideas what went wrong?

Kind Regards