On 2 Nov 2007, at 17:17, Dierk Koenig wrote:
have a look at
http://webtest.canoo.com/webtest/manual/samples.html
If you follow the standard setup you can just drop your file
into the includes dir and reference it like
&login;
WebTest takes care of making this file and the &login; entity
known to the DTD.
Yep, I got that bit - calling the module from within the xml is not a
problem, but how do I call it from groovy?
Why would you ever want to reference such an XML file from
Groovy?
I'm working on a testing framework, I'd like to provide some
functionality in the framework itself which can only be done through
scripting. But I would like the users of the framework to use XML to
define the functions, e.g. login.
Been reading up to see whether AntBuilder can read an existing ant
file - no luck so far, it doesn't seem to support the import method...?
Stephen
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Stephen de Vries
Sent: Freitag, 2. November 2007 14:58
To: [email protected]
Subject: [Webtest] Calling modules from groovy
How does one call a predefined module from within groovy? For
example, I've defined the file login.xml which contains:
<invoke
description="goto login page"
url="#{start.page}" />
How should I execute this module from within a groovy script block?
regards,
Stephen
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest