[Webtest] Groovy scripting language and Webtest

Dierk Koenig webtest@lists.canoo.com
Thu, 26 Aug 2004 18:56:00 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0047_01C48B9E.53D86240
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

I currently investigate this and it is very promising.

There is an issue with the current version on the AntBuilder that does not
process
TaskContainers (like testSpec) correctly. I'm in conversation with the
author to solve that issue.

I see three main areas of using Groovy with Canoo WebTest:
- in the bean scripting framework, see
http://webtest-community.canoo.com/wiki/space/ScriptStep
- with maybe a special <groovy> step that could be more specific than the
BSF
- with the AntBuilder for dynamic creation of scripts

get the groove
Mittie

  -----Original Message-----
  From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com]On Behalf Of Bill Milbratz
  Sent: Donnerstag, 26. August 2004 18:42
  To: 'webtest@lists.canoo.com'
  Subject: [Webtest] Groovy scripting language and Webtest


  Hi,

  The new "pragmatic automation" book talks about using the "Groovy"
scripting language with ant. Groovy is a weakly-typed scripting language
which sits on top of the JVM and has access to ant tasks. (
http://groovy.codehaus.org/ )

  is anyone using this (or a similar scripting language) with webtest?

  i've used xml/xsl with webtest to generate 'ant' build scripts. I wondered
if scripting-ish alternatives proved more flexible/friendly.

  thanks,

  bill milbratz

------=_NextPart_000_0047_01C48B9E.53D86240
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=3D"http://www.w3.org/TR/REC-html40" xmlns:v =3D=20
"urn:schemas-microsoft-com:vml" xmlns:o =3D=20
"urn:schemas-microsoft-com:office:office" xmlns:w =3D=20
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1458" name=3DGENERATOR>
<STYLE>@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt =
72.0pt 90.0pt; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
H1 {
	FONT-SIZE: 16pt; MARGIN: 12pt 0cm 3pt; FONT-FAMILY: Arial
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline
}
P.PageHeading1 {
	FONT-WEIGHT: bold; FONT-SIZE: 28pt; MARGIN: 24pt 0cm; TEXT-INDENT: 0cm; =
FONT-FAMILY: Arial; LETTER-SPACING: 4pt; FONT-VARIANT: small-caps; =
mso-list: l0 level1 lfo2; mso-element: frame
}
LI.PageHeading1 {
	FONT-WEIGHT: bold; FONT-SIZE: 28pt; MARGIN: 24pt 0cm; TEXT-INDENT: 0cm; =
FONT-FAMILY: Arial; LETTER-SPACING: 4pt; FONT-VARIANT: small-caps; =
mso-list: l0 level1 lfo2; mso-element: frame
}
DIV.PageHeading1 {
	FONT-WEIGHT: bold; FONT-SIZE: 28pt; MARGIN: 24pt 0cm; TEXT-INDENT: 0cm; =
FONT-FAMILY: Arial; LETTER-SPACING: 4pt; FONT-VARIANT: small-caps; =
mso-list: l0 level1 lfo2; mso-element: frame
}
SPAN.EmailStyle18 {
	COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
	page: Section1
}
OL {
	MARGIN-BOTTOM: 0cm
}
UL {
	MARGIN-BOTTOM: 0cm
}
</STYLE>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1" />
 </o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=3DEN-US vLink=3Dpurple link=3Dblue>
<DIV><SPAN class=3D750364616-26082004><FONT face=3DArial color=3D#0000ff =
size=3D2>I=20
currently investigate this and it is very promising.</FONT></SPAN></DIV>
<DIV><SPAN class=3D750364616-26082004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D750364616-26082004><FONT face=3DArial color=3D#0000ff =
size=3D2>There=20
is an issue with the current version on the AntBuilder that does not=20
process</FONT></SPAN></DIV>
<DIV><SPAN class=3D750364616-26082004><FONT face=3DArial color=3D#0000ff =

size=3D2>TaskContainers (like testSpec) correctly. I'm in conversation =
with the=20
author to solve that issue.</FONT></SPAN></DIV>
<DIV><SPAN class=3D750364616-26082004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D750364616-26082004><FONT face=3DArial color=3D#0000ff =
size=3D2>I see=20
three main areas of using Groovy with Canoo WebTest:</FONT></SPAN></DIV>
<DIV><SPAN class=3D750364616-26082004><FONT face=3DArial color=3D#0000ff =
size=3D2>- in=20
the bean scripting framework, see <A=20
href=3D"http://webtest-community.canoo.com/wiki/space/ScriptStep">http://=
webtest-community.canoo.com/wiki/space/ScriptStep</A></FONT></SPAN></DIV>=

<DIV><SPAN class=3D750364616-26082004><FONT face=3DArial color=3D#0000ff =
size=3D2>- with=20
maybe a special &lt;groovy&gt; step that could be more specific than the =

BSF</FONT></SPAN></DIV>
<DIV><SPAN class=3D750364616-26082004><FONT face=3DArial color=3D#0000ff =
size=3D2>- with=20
the AntBuilder for dynamic creation of scripts</FONT></SPAN></DIV>
<DIV><SPAN class=3D750364616-26082004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D750364616-26082004><FONT face=3DArial color=3D#0000ff =
size=3D2>get=20
the groove</FONT></SPAN></DIV>
<DIV><SPAN class=3D750364616-26082004><FONT face=3DArial color=3D#0000ff =

size=3D2>Mittie</FONT></SPAN></DIV>
<DIV><SPAN class=3D750364616-26082004><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B>=20
  webtest-admin@lists.canoo.com =
[mailto:webtest-admin@lists.canoo.com]<B>On=20
  Behalf Of </B>Bill Milbratz<BR><B>Sent:</B> Donnerstag, 26. August =
2004=20
  18:42<BR><B>To:</B> 'webtest@lists.canoo.com'<BR><B>Subject:</B> =
[Webtest]=20
  Groovy scripting language and Webtest<BR><BR></FONT></DIV>
  <DIV><SPAN class=3D826313616-26082004><FONT face=3D"Arial Unicode MS"=20
  color=3D#0000ff size=3D2>Hi,</FONT></SPAN></DIV>
  <DIV><SPAN class=3D826313616-26082004><FONT face=3D"Arial Unicode MS"=20
  color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D826313616-26082004><FONT face=3D"Arial Unicode MS"=20
  color=3D#0000ff size=3D2>The new "pragmatic automation" book talks =
about using the=20
  "Groovy" scripting language with ant. Groovy is&nbsp;a weakly-typed =
scripting=20
  language which sits on top of the JVM and has access to ant tasks. ( =
<A=20
  =
href=3D"http://groovy.codehaus.org/">http://groovy.codehaus.org/</A>&nbsp=
;)</FONT></SPAN></DIV>
  <DIV><SPAN class=3D826313616-26082004><FONT face=3D"Arial Unicode MS"=20
  color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D826313616-26082004><FONT face=3D"Arial Unicode MS"=20
  color=3D#0000ff size=3D2>is anyone using this (or a similar scripting=20
  language)&nbsp;with webtest?</FONT></SPAN></DIV>
  <DIV><SPAN class=3D826313616-26082004><FONT face=3D"Arial Unicode MS"=20
  color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D826313616-26082004><FONT face=3D"Arial Unicode MS"=20
  color=3D#0000ff size=3D2>i've used xml/xsl with webtest to generate =
'ant' build=20
  scripts. I wondered if scripting-ish alternatives proved more=20
  flexible/friendly.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D826313616-26082004><FONT face=3D"Arial Unicode MS"=20
  color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D455302716-26082004><FONT face=3D"Arial Unicode MS"=20
  color=3D#0000ff size=3D2><SPAN=20
  class=3D826313616-26082004>thanks,</SPAN></FONT></SPAN></DIV>
  <DIV><SPAN class=3D455302716-26082004><FONT face=3D"Arial Unicode MS"=20
  color=3D#0000ff size=3D2><SPAN=20
  class=3D826313616-26082004></SPAN></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D455302716-26082004><FONT face=3D"Arial Unicode MS"=20
  color=3D#0000ff size=3D2><SPAN class=3D826313616-26082004>bill=20
  milbratz</SPAN></FONT></SPAN></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0047_01C48B9E.53D86240--