[Webtest] passing parameters between two xml files

lavanya palaniswamy lavan.swamy@yahoo.co.in
Tue, 16 Sep 2008 15:01:27 +0530 (IST)


--0-982019627-1221557487=:26062
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


=C2=A0
=C2=A0
=C2=A0
Hi Soula,
Thanks for your reply.
I am not particular about groovy.
U=C2=A0can also=C2=A0explain me with javascript.

A1.xml(file1)
<scriptStep description=3D"to check alphabets" language=3D"javascript">
=C2=A0n1=3D"Hello";
=C2=A0=20
=C2=A0 step.setWebtestProperty('a', n1);
=C2=A0=20
</scriptStep>
<echo message=3D"#{a}"/>
=C2=A0
A2.xml (file2)
<project name=3D"SimpleTest" basedir=3D"." default=3D"main4" >
=C2=A0 <property name=3D"webtest.home" location=3D"C:/Program Files/webtest=
" />
=C2=A0 <import file=3D"${webtest.home}/lib/taskdef.xml"/>
=C2=A0=20
=C2=A0 <property name=3D"webtest.connectioninitializer" value=3D"com.canoo.=
webtest.security.SunJsseBaseConnectionInitializer" />
=C2=A0 <property name=3D"webtest.truststore.file" value=3D"C:\Program Files=
\Java\jdk1.6.0_03\jre\lib\security\cacerts" />=20
=C2=A0 <property name=3D"webtest.truststore.passphrase" value=3D"changeit" =
/>
=C2=A0 <import file=3D"C:\Program Files\webtest\functions\A1.xml" descripti=
on=3D"Import all functionalities for a full build"/>
=C2=A0 <target name=3D"main4" depends=3D"main1">
=C2=A0<webtest name=3D"c2">
=C2=A0=C2=A0=C2=A0 <config
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 host=3D"abc.net"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 protocol=3D"https"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0 >
=C2=A0=C2=A0=C2=A0 <header name=3D"User-Agent" value=3D"Mozilla/4.0"/>
=C2=A0=C2=A0=C2=A0 <header name=3D"Accept-Language" value=3D"de-ch"/>
=C2=A0=C2=A0=C2=A0=20
=C2=A0=C2=A0=C2=A0 <option name=3D"ThrowExceptionOnScriptError" value=3D"fa=
lse"/>
=C2=A0 <option name=3D"JavaScriptEnabled" value=3D"true"/>
=C2=A0 </config>=C2=A0
=C2=A0=C2=A0
=C2=A0=C2=A0=C2=A0<steps>
=C2=A0=C2=A0=C2=A0=C2=A0=20
=C2=A0=C2=A0=C2=A0=C2=A0 <echo message=3D"#{a}"/>
=C2=A0=C2=A0=C2=A0=C2=A0=20
</steps>
</webtest>
=C2=A0=C2=A0=C2=A0=20
=C2=A0=C2=A0=C2=A0 </target>=20
</project>

On executing File2, file 1(A1.xml) adn File 2(A2.xml)
gets executed seperately.No link between file 1 and File 2.So the result fo=
r File 2 is
Output:
#{a}
instead of "Hello".
Please help me on how to pass values from one Xml file to another.
Thanks in Advance
Lavanya
=C2=A0
=C2=A0
=C2=A0
=C2=A0
=C2=A0
=C2=A0
=C2=A0
=C2=A0
=C2=A0
=C2=A0

--- On Thu, 11/9/08, Soula, William <wsoula@pointserve.com> wrote:

From: Soula, William <wsoula@pointserve.com>
Subject: RE: [Webtest] passing parameters between two xml files
To: "webtest@lists.canoo.com" <webtest@lists.canoo.com>
Date: Thursday, 11 September, 2008, 8:30 PM



I was thinking along the lines of this:
file 1:
<storeProperty property=3D"movie" value=3D"23"/>
<echo message=3D"movie=3D#{movie}" file=3D"output.txt"/>
=C2=A0
file2:
<property file=3D"output.txt"/>
<echo message=3D"${movie}"/>
=C2=A0
Something like that should be what you want, you could also use concat.=C2=
=A0 If you want to use groovy to output to the file you can do something li=
ke below (I don't really know groovy, sorry :)
<script language=3D"groovy">
=C2=A0=C2=A0=C2=A0 println("movie=3D#{movie}")
</script>
=C2=A0



From: lavanya palaniswamy [mailto:lavan.swamy@yahoo.co.in]=20
Sent: Thursday, September 11, 2008 7:14 AM
To: Soula, William
Cc: webtest@lists.canoo.com
Subject: RE: [Webtest] passing parameters between two xml files






Hi Soula,
Thanks for replying.
I am not able to pass parameters within two Xml files.
So i tried converting groovy variable to ant and then pass.
But this is not working.
As per solution passing values from main script to temp script again
means passing variables between two xml files.
Please help me with the solution other than this conversion from groovy to =
ant and
passing the values.
Thanks in advance
Lavanya







--- On Thu, 11/9/08, Soula, William <wsoula@pointserve.com> wrote:

From: Soula, William <wsoula@pointserve.com>
Subject: RE: [Webtest] passing parameters between two xml files
To: "webtest@lists.canoo.com" <webtest@lists.canoo.com>
Date: Thursday, 11 September, 2008, 5:20 PM



Could you output the property to a temp property file and then read it in w=
ith the other script?



From: webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com] =
On Behalf Of lavanya palaniswamy
Sent: Thursday, September 11, 2008 6:25 AM
To: webtest@lists.canoo.com
Subject: [Webtest] passing parameters between two xml files






Hi All,
Can any one help me in passing parameters between two
xml files.
With the following script(Script a1 is xml file1 and Script b1 is xml file =
2):
Script a1:
<target name=3D"main1">
=C2=A0=C2=A0=C2=A0 <webtest name=3D"a1">
=C2=A0=20
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <steps>
=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0
<scriptStep description=3D"to check alphabets" language=3D"groovy">
=C2=A0n1=3D"${n}";

=C2=A0 p =3D n1.length()
=C2=A0=20
=C2=A0 println("=3D=3D=3D=3D>>"+p);
if(p>8)
=C2=A0{
println("invalid length")
}

else
{
println("one =3D=3D passed")
=C2=A0=C2=A0=C2=A0 theRegularExpression =3D /([a-z])/

=C2=A0 if (n1 =3D~theRegularExpression)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0
=C2=A0 {
=C2=A0 step.setWebtestProperty('a', n1);
=C2=A0 }
=C2=A0else
=C2=A0{
println("one =3D=3D Failed");
}

}
</scriptStep>





Script b1:
<project name=3D"SimpleTest" basedir=3D"." >
=C2=A0 <property name=3D"webtest.home" location=3D"C:/Program Files/webtest=
" />
=C2=A0 <import file=3D"${webtest.home}/lib/taskdef.xml"/>
=C2=A0=C2=A0 <ant antfile=3D"f1.xml" dir=3D"." inheritrefs=3D"true" target=
=3D"main">=20
=C2=A0 <property name=3D"webtest.connectioninitializer" value=3D"com.canoo.=
webtest.security.SunJsseBaseConnectionInitializer" />
=C2=A0 <property name=3D"webtest.truststore.file" value=3D"C:\Program Files=
\Java\jdk1.6.0_03\jre\lib\security\cacerts" />=20
=C2=A0 <property name=3D"webtest.truststore.passphrase" value=3D"changeit" =
/>
=C2=A0=20
=C2=A0=C2=A0 =C2=A0
=C2=A0=C2=A0 =C2=A0<property name=3D"n" value=3D"wwwww"/>
=C2=A0=C2=A0 <!-- <property name=3D"a" value=3D"TEST2222"/> -->
=C2=A0 </ant>=20
=C2=A0 <target name=3D"main">
=C2=A0=C2=A0=C2=A0 <webtest name=3D"b1">
=C2=A0=C2=A0=C2=A0 <config
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 host=3D"ddddd.net"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 protocol=3D"https"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0 >
=C2=A0=C2=A0=C2=A0 <header name=3D"User-Agent" value=3D"Mozilla/4.0"/>
=C2=A0=C2=A0=C2=A0 <header name=3D"Accept-Language" value=3D"de-ch"/>
=C2=A0=C2=A0 =C2=A0
=C2=A0=C2=A0=C2=A0 <option name=3D"ThrowExceptionOnScriptError" value=3D"fa=
lse"/>
=C2=A0 <option name=3D"JavaScriptEnabled" value=3D"true"/>

=C2=A0 </config>=20
=C2=A0=C2=A0 <steps>
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <storeProperty
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 description=3D"convert Ant to dy=
namic"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 name=3D"a"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 value=3D"${n}"/>
<setInputField name=3D"name.given" value=3D"#{a}"/>
<echo message=3D"#{a}"/>
</steps>
=C2=A0=C2=A0 </webtest>
=C2=A0 </target>
</project>



Here am trying to call parameters from "a1" in to "b1"
script,by doing so,b1 is not getting executed.
Thanks in Advance
Lavanya




Did you know? You can CHAT without downloading messenger. Click here


Unlimited freedom, unlimited storage. Get it now =0A=0A=0A      Download pr=
ohibited? No problem. CHAT from any browser, without download. Go to http:/=
/in.webmessenger.yahoo.com/
--0-982019627-1221557487=:26062
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<table cellspacing=3D"0" cellpadding=3D"0" border=3D"0" ><tr><td valign=3D"=
top" style=3D"font: inherit;"><DIV><BR>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Hi Soula,<BR>Thanks for your reply.<BR>I am not particular about groov=
y.<BR>U&nbsp;can also&nbsp;explain me with javascript.</DIV>
<DIV><BR><FONT color=3D#7f003f><STRONG>A1.xml(file1)</STRONG><BR></FONT>&lt=
;scriptStep description=3D"to check alphabets" language=3D"javascript"&gt;<=
BR>&nbsp;n1=3D"Hello";</DIV>
<DIV>&nbsp; <BR>&nbsp; step.setWebtestProperty('a', n1);<BR>&nbsp; <BR>&lt;=
/scriptStep&gt;<BR>&lt;echo message=3D"#{a}"/&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG><FONT color=3D#800000>A2.xml (file2)</FONT></STRONG></DIV>
<DIV>&lt;project name=3D"SimpleTest" basedir=3D"." default=3D"main4" &gt;<B=
R>&nbsp; &lt;property name=3D"webtest.home" location=3D"C:/Program Files/we=
btest" /&gt;<BR>&nbsp; &lt;import file=3D"${webtest.home}/lib/taskdef.xml"/=
&gt;<BR>&nbsp; <BR>&nbsp; &lt;property name=3D"webtest.connectioninitialize=
r" value=3D"com.canoo.webtest.security.SunJsseBaseConnectionInitializer" /&=
gt;<BR>&nbsp; &lt;property name=3D"webtest.truststore.file" value=3D"C:\Pro=
gram Files\Java\jdk1.6.0_03\jre\lib\security\cacerts" /&gt; <BR>&nbsp; &lt;=
property name=3D"webtest.truststore.passphrase" value=3D"changeit" /&gt;<BR=
>&nbsp;<FONT color=3D#0000bf> &lt;import file=3D"C:\Program Files\webtest\f=
unctions\A1.xml" description=3D"Import all functionalities for a full build=
"/&gt;<BR></FONT>&nbsp; &lt;target name=3D"main4" depends=3D"main1"&gt;<BR>=
&nbsp;&lt;webtest name=3D"c2"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;config<BR>&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; host=3D"abc.net"<BR>&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 protocol=3D"https"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<BR>&nbsp;&nbsp;&nbsp; &lt;header name=3D"Us=
er-Agent" value=3D"Mozilla/4.0"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;header name=
=3D"Accept-Language" value=3D"de-ch"/&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&=
nbsp;&nbsp; &lt;option name=3D"ThrowExceptionOnScriptError" value=3D"false"=
/&gt;<BR>&nbsp; &lt;option name=3D"JavaScriptEnabled" value=3D"true"/&gt;</=
DIV>
<DIV>&nbsp; &lt;/config&gt;&nbsp;<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&lt;=
steps&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;echo=
 message=3D"#{a}"/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; <BR>&lt;/steps&gt;</DIV>
<DIV>&lt;/webtest&gt;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &lt;/target&gt; </DIV>
<DIV>&lt;/project&gt;</DIV>
<DIV><BR>On executing File2, file 1(A1.xml) adn File 2(A2.xml)<BR>gets exec=
uted seperately.No link between file 1 and File 2.So the result for File 2 =
is<BR><STRONG><FONT color=3D#800000>Output:</FONT></STRONG><BR>#{a}<BR>inst=
ead of "Hello".<BR>Please help me on how to pass values from one Xml file t=
o another.<BR>Thanks in Advance<BR>Lavanya</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>--- On <B>Thu, 11/9/08, Soula, William <I>&lt;wsoula@pointserve.co=
m&gt;</I></B> wrote:<BR></DIV>
<BLOCKQUOTE style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(=
16,16,255) 2px solid">From: Soula, William &lt;wsoula@pointserve.com&gt;<BR=
>Subject: RE: [Webtest] passing parameters between two xml files<BR>To: "we=
btest@lists.canoo.com" &lt;webtest@lists.canoo.com&gt;<BR>Date: Thursday, 1=
1 September, 2008, 8:30 PM<BR><BR>
<DIV id=3Dyiv188977894>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D998344714-11092008><FONT face=3DA=
rial color=3D#0000ff size=3D2>I was thinking along the lines of this:</FONT=
></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D998344714-11092008><FONT face=3DA=
rial color=3D#0000ff size=3D2>file 1:</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D998344714-11092008><FONT face=3DA=
rial color=3D#0000ff size=3D2>&lt;storeProperty property=3D"movie" value=3D=
"23"/&gt;</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D998344714-11092008><FONT face=3DA=
rial color=3D#0000ff size=3D2>&lt;echo message=3D"movie=3D#{movie}" file=3D=
"output.txt"/&gt;</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D998344714-11092008><FONT face=3DA=
rial color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D998344714-11092008><FONT face=3DA=
rial color=3D#0000ff size=3D2>file2:</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D998344714-11092008><FONT face=3DA=
rial color=3D#0000ff size=3D2>&lt;property file=3D"output.txt"/&gt;</FONT><=
/SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D998344714-11092008><FONT face=3DA=
rial color=3D#0000ff size=3D2>&lt;echo message=3D"${movie}"/&gt;</FONT></SP=
AN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D998344714-11092008><FONT face=3DA=
rial color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D998344714-11092008><FONT face=3DA=
rial color=3D#0000ff size=3D2>Something like that should be what you want, =
you could also use concat.&nbsp; If you want to use groovy to output to the=
 file you can do something like below (I don't really know groovy, sorry :)=
</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D998344714-11092008><FONT face=3DA=
rial color=3D#0000ff size=3D2>&lt;script language=3D"groovy"&gt;</FONT></SP=
AN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D998344714-11092008>&nbsp;&nbsp;&n=
bsp; <FONT face=3DArial color=3D#0000ff size=3D2>println("movie=3D#{movie}"=
)</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D998344714-11092008><FONT face=3DA=
rial color=3D#0000ff size=3D2>&lt;/script&gt;</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D998344714-11092008><FONT face=3DA=
rial color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> lavanya palaniswamy [mailto:lavan=
.swamy@yahoo.co.in] <BR><B>Sent:</B> Thursday, September 11, 2008 7:14 AM<B=
R><B>To:</B> Soula, William<BR><B>Cc:</B> webtest@lists.canoo.com<BR><B>Sub=
ject:</B> RE: [Webtest] passing parameters between two xml files<BR></FONT>=
<BR></DIV>
<DIV></DIV>
<TABLE cellSpacing=3D0 cellPadding=3D0 border=3D0>
<TBODY>
<TR>
<TD vAlign=3Dtop>Hi Soula,<BR>Thanks for replying.<BR>I am not able to pass=
 parameters within two Xml files.<BR>So i tried converting groovy variable =
to ant and then pass.<BR>But this is not working.<BR>As per solution passin=
g values from main script to temp script again<BR>means passing variables b=
etween two xml files.<BR>Please help me with the solution other than this c=
onversion from groovy to ant and<BR>passing the values.<BR>Thanks in advanc=
e<BR>Lavanya<BR><BR><BR><BR><BR><BR><BR><BR>--- On <B>Thu, 11/9/08, Soula, =
William <I>&lt;wsoula@pointserve.com&gt;</I></B> wrote:<BR>
<BLOCKQUOTE style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(=
16,16,255) 2px solid">From: Soula, William &lt;wsoula@pointserve.com&gt;<BR=
>Subject: RE: [Webtest] passing parameters between two xml files<BR>To: "we=
btest@lists.canoo.com" &lt;webtest@lists.canoo.com&gt;<BR>Date: Thursday, 1=
1 September, 2008, 5:20 PM<BR><BR>
<DIV id=3Dyiv1328891058>
<DIV dir=3Dltr align=3Dleft><FONT face=3DArial color=3D#0000ff size=3D2><SP=
AN class=3D889434911-11092008>Could you output the property to a temp prope=
rty file and then read it in with the other script?</SPAN></FONT></DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> webtest-admin@lists.canoo.com [ma=
ilto:webtest-admin@lists.canoo.com] <B>On Behalf Of </B>lavanya palaniswamy=
<BR><B>Sent:</B> Thursday, September 11, 2008 6:25 AM<BR><B>To:</B> webtest=
@lists.canoo.com<BR><B>Subject:</B> [Webtest] passing parameters between tw=
o xml files<BR></FONT><BR></DIV>
<DIV></DIV>
<TABLE cellSpacing=3D0 cellPadding=3D0 border=3D0>
<TBODY>
<TR>
<TD vAlign=3Dtop>Hi All,<BR>Can any one help me in passing parameters betwe=
en two<BR>xml files.<BR>With the following script(Script a1 is xml file1 an=
d Script b1 is xml file 2):<BR><SPAN style=3D"FONT-WEIGHT: bold">Script a1:=
</SPAN><BR>&lt;target name=3D"main1"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;webtest =
name=3D"a1"&gt;<BR>&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;steps&gt;<=
BR>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<BR>&lt;scriptStep description=3D"to chec=
k alphabets" language=3D"groovy"&gt;<BR>&nbsp;n1=3D"${n}";<BR><BR>&nbsp; p =
=3D n1.length()<BR>&nbsp; <BR>&nbsp; println("=3D=3D=3D=3D&gt;&gt;"+p);<BR>=
if(p&gt;8)<BR>&nbsp;{<BR>println("invalid length")<BR>}<BR><BR>else<BR>{<BR=
>println("one =3D=3D passed")<BR>&nbsp;&nbsp;&nbsp; theRegularExpression =
=3D /([a-z])/<BR><BR>&nbsp; if (n1 =3D~theRegularExpression)<BR>&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<BR>&nbsp; {<BR>&nbsp; step.setWebtestPrope=
rty('a', n1);<BR>&nbsp; }<BR>&nbsp;else<BR>&nbsp;{<BR>println("one =3D=3D
 Failed");<BR>}<BR><BR>}<BR>&lt;/scriptStep&gt;<BR><BR>
<HR style=3D"WIDTH: 100%; HEIGHT: 2px">
<BR><BR><SPAN style=3D"FONT-WEIGHT: bold">Script b1:</SPAN><BR>&lt;project =
name=3D"SimpleTest" basedir=3D"." &gt;<BR>&nbsp; &lt;property name=3D"webte=
st.home" location=3D"C:/Program Files/webtest" /&gt;<BR>&nbsp; &lt;import f=
ile=3D"${webtest.home}/lib/taskdef.xml"/&gt;<BR>&nbsp;&nbsp; &lt;ant antfil=
e=3D"f1.xml" dir=3D"." inheritrefs=3D"true" target=3D"main"&gt; <BR>&nbsp; =
&lt;property name=3D"webtest.connectioninitializer" value=3D"com.canoo.webt=
est.security.SunJsseBaseConnectionInitializer" /&gt;<BR>&nbsp; &lt;property=
 name=3D"webtest.truststore.file" value=3D"C:\Program Files\Java\jdk1.6.0_0=
3\jre\lib\security\cacerts" /&gt; <BR>&nbsp; &lt;property name=3D"webtest.t=
ruststore.passphrase" value=3D"changeit" /&gt;<BR>&nbsp; <BR>&nbsp;&nbsp; &=
nbsp;<BR>&nbsp;&nbsp; &nbsp;&lt;property name=3D"n" value=3D"wwwww"/&gt;<BR=
>&nbsp;&nbsp; &lt;!-- &lt;property name=3D"a" value=3D"TEST2222"/&gt; --&gt=
;<BR>&nbsp; &lt;/ant&gt; <BR>&nbsp; &lt;target name=3D"main"&gt;<BR>&nbsp;&=
nbsp;&nbsp; &lt;webtest
 name=3D"b1"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;config<BR>&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp; host=3D"ddddd.net"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp; protocol=3D"https"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<BR>&nbsp;&nbsp;&nbsp; &lt;h=
eader name=3D"User-Agent" value=3D"Mozilla/4.0"/&gt;<BR>&nbsp;&nbsp;&nbsp; =
&lt;header name=3D"Accept-Language" value=3D"de-ch"/&gt;<BR>&nbsp;&nbsp; &n=
bsp;<BR>&nbsp;&nbsp;&nbsp; &lt;option name=3D"ThrowExceptionOnScriptError" =
value=3D"false"/&gt;<BR>&nbsp; &lt;option name=3D"JavaScriptEnabled" value=
=3D"true"/&gt;<BR><BR>&nbsp; &lt;/config&gt; <BR>&nbsp;&nbsp; &lt;steps&gt;=
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;storeProperty<BR>&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp; description=3D"convert Ant to dynamic"<BR>&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name=3D"a"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp; value=3D"${n}"/&gt;<BR>&lt;setInputField name=3D"name.given=
"
 value=3D"#{a}"/&gt;<BR>&lt;echo message=3D"#{a}"/&gt;<BR>&lt;/steps&gt;<BR=
>&nbsp;&nbsp; &lt;/webtest&gt;<BR>&nbsp; &lt;/target&gt;<BR>&lt;/project&gt=
;<BR>
<HR style=3D"WIDTH: 100%; HEIGHT: 2px">
<BR>Here am trying to call parameters from "a1" in to "b1"<BR>script,by doi=
ng so,b1 is not getting executed.<BR>Thanks in Advance<BR>Lavanya<BR><BR></=
TD></TR></TBODY></TABLE><BR>
<HR SIZE=3D1>
Did you know? You can CHAT without downloading messenger. <A href=3D"http:/=
/in.rd.yahoo.com/tagline_webmessenger_2/*http://in.webmessenger.yahoo.com/"=
 target=3D_blank rel=3Dnofollow>Click here</A></DIV></BLOCKQUOTE></TD></TR>=
</TBODY></TABLE><BR>
<HR SIZE=3D1>
Unlimited freedom, unlimited storage. <A href=3D"http://in.rd.yahoo.com/tag=
line_mail_2/*http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08=
.html/" target=3D_blank rel=3Dnofollow>Get it now</A> </DIV></BLOCKQUOTE></=
td></tr></table><br>=0A=0A=0A      <!--1--><hr size=3D1></hr> Connect with =
friends all over the world. <a href=3D"http://in.rd.yahoo.com/tagline_messe=
nger_1/*http://in.messenger.yahoo.com/?wm=3Dn/"> Get Yahoo! India Messenger=
.</a>
--0-982019627-1221557487=:26062--