[Webtest] passing parameters between two xml files

lavanya palaniswamy lavan.swamy@yahoo.co.in
Wed, 17 Sep 2008 13:01:07 +0530 (IST)


--0-2070995967-1221636667=:22109
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=20



       Connect with friends all over the world.  Get Yahoo! India Messenger=
.=0A=0A=0A      Download prohibited? No problem. CHAT from any browser, wit=
hout download. Go to http://in.webmessenger.yahoo.com/
--0-2070995967-1221636667=:22109
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;"><br><br><br><blockquote style=3D"border-left:=
 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br><div=
 id=3D"yiv1841398418"><table border=3D"0" cellpadding=3D"0" cellspacing=3D"=
0"><tbody><tr><td style=3D"font-family: inherit; font-style: inherit; font-=
variant: inherit; font-weight: inherit; font-size: inherit; line-height: in=
herit; font-size-adjust: inherit; font-stretch: inherit;" valign=3D"top"><d=
iv><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=
\functions\A1.xml" description=3D"Import all functionalities for a full bui=
ld"/&gt;<br></font>&nbsp; &lt;target name=3D"main4" depends=3D"main1"&gt;<b=
r>&nbsp;&lt;webtest name=3D"c2"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;config<br>&nb=
sp;&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>in=
stead of "Hello".<br>Please help me on how to pass values from one Xml file=
 to 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"border-left: 2px solid rgb(16, 16, 255); padding-left:=
 5px; margin-left: 5px;">From: Soula, William &lt;wsoula@pointserve.com&gt;=
<br>Subject: RE: [Webtest] passing parameters between two xml files<br>To: =
"webtest@lists.canoo.com" &lt;webtest@lists.canoo.com&gt;<br>Date: Thursday=
, 11 September, 2008, 8:30 PM<br><br>
<div id=3D"yiv188977894">
<div dir=3D"ltr" align=3D"left"><span class=3D"998344714-11092008"><font co=
lor=3D"#0000ff" face=3D"Arial" size=3D"2">I was thinking along the lines of=
 this:</font></span></div>
<div dir=3D"ltr" align=3D"left"><span class=3D"998344714-11092008"><font co=
lor=3D"#0000ff" face=3D"Arial" size=3D"2">file 1:</font></span></div>
<div dir=3D"ltr" align=3D"left"><span class=3D"998344714-11092008"><font co=
lor=3D"#0000ff" face=3D"Arial" size=3D"2">&lt;storeProperty property=3D"mov=
ie" value=3D"23"/&gt;</font></span></div>
<div dir=3D"ltr" align=3D"left"><span class=3D"998344714-11092008"><font co=
lor=3D"#0000ff" face=3D"Arial" size=3D"2">&lt;echo message=3D"movie=3D#{mov=
ie}" file=3D"output.txt"/&gt;</font></span></div>
<div dir=3D"ltr" align=3D"left"><span class=3D"998344714-11092008"><font co=
lor=3D"#0000ff" face=3D"Arial" size=3D"2"></font></span>&nbsp;</div>
<div dir=3D"ltr" align=3D"left"><span class=3D"998344714-11092008"><font co=
lor=3D"#0000ff" face=3D"Arial" size=3D"2">file2:</font></span></div>
<div dir=3D"ltr" align=3D"left"><span class=3D"998344714-11092008"><font co=
lor=3D"#0000ff" face=3D"Arial" size=3D"2">&lt;property file=3D"output.txt"/=
&gt;</font></span></div>
<div dir=3D"ltr" align=3D"left"><span class=3D"998344714-11092008"><font co=
lor=3D"#0000ff" face=3D"Arial" size=3D"2">&lt;echo message=3D"${movie}"/&gt=
;</font></span></div>
<div dir=3D"ltr" align=3D"left"><span class=3D"998344714-11092008"><font co=
lor=3D"#0000ff" face=3D"Arial" size=3D"2"></font></span>&nbsp;</div>
<div dir=3D"ltr" align=3D"left"><span class=3D"998344714-11092008"><font co=
lor=3D"#0000ff" face=3D"Arial" size=3D"2">Something like that should be wha=
t you want, you could also use concat.&nbsp; If you want to use groovy to o=
utput to the file you can do something like below (I don't really know groo=
vy, sorry :)</font></span></div>
<div dir=3D"ltr" align=3D"left"><span class=3D"998344714-11092008"><font co=
lor=3D"#0000ff" face=3D"Arial" size=3D"2">&lt;script language=3D"groovy"&gt=
;</font></span></div>
<div dir=3D"ltr" align=3D"left"><span class=3D"998344714-11092008">&nbsp;&n=
bsp;&nbsp; <font color=3D"#0000ff" face=3D"Arial" size=3D"2">println("movie=
=3D#{movie}")</font></span></div>
<div dir=3D"ltr" align=3D"left"><span class=3D"998344714-11092008"><font co=
lor=3D"#0000ff" face=3D"Arial" size=3D"2">&lt;/script&gt;</font></span></di=
v>
<div dir=3D"ltr" align=3D"left"><span class=3D"998344714-11092008"><font co=
lor=3D"#0000ff" face=3D"Arial" size=3D"2"></font></span>&nbsp;</div><br>
<div class=3D"OutlookMessageHeader" dir=3D"ltr" align=3D"left" lang=3D"en-u=
s">
<hr tabindex=3D"-1">
<font face=3D"Tahoma" size=3D"2"><b>From:</b> lavanya palaniswamy [mailto:l=
avan.swamy@yahoo.co.in] <br><b>Sent:</b> Thursday, September 11, 2008 7:14 =
AM<br><b>To:</b> Soula, William<br><b>Cc:</b> webtest@lists.canoo.com<br><b=
>Subject:</b> RE: [Webtest] passing parameters between two xml files<br></f=
ont><br></div>
<div></div>
<table border=3D"0" cellpadding=3D"0" cellspacing=3D"0">
<tbody>
<tr>
<td valign=3D"top">Hi Soula,<br>Thanks for replying.<br>I am not able to pa=
ss parameters within two Xml files.<br>So i tried converting groovy variabl=
e to ant and then pass.<br>But this is not working.<br>As per solution pass=
ing values from main script to temp script again<br>means passing variables=
 between two xml files.<br>Please help me with the solution other than this=
 conversion from groovy to ant and<br>passing the values.<br>Thanks in adva=
nce<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"border-left: 2px solid rgb(16, 16, 255); padding-left:=
 5px; margin-left: 5px;">From: Soula, William &lt;wsoula@pointserve.com&gt;=
<br>Subject: RE: [Webtest] passing parameters between two xml files<br>To: =
"webtest@lists.canoo.com" &lt;webtest@lists.canoo.com&gt;<br>Date: Thursday=
, 11 September, 2008, 5:20 PM<br><br>
<div id=3D"yiv1328891058">
<div dir=3D"ltr" align=3D"left"><font color=3D"#0000ff" face=3D"Arial" size=
=3D"2"><span class=3D"889434911-11092008">Could you output the property to =
a temp property file and then read it in with the other script?</span></fon=
t></div><br>
<div class=3D"OutlookMessageHeader" dir=3D"ltr" align=3D"left" lang=3D"en-u=
s">
<hr tabindex=3D"-1">
<font face=3D"Tahoma" size=3D"2"><b>From:</b> webtest-admin@lists.canoo.com=
 [mailto:webtest-admin@lists.canoo.com] <b>On Behalf Of </b>lavanya palanis=
wamy<br><b>Sent:</b> Thursday, September 11, 2008 6:25 AM<br><b>To:</b> web=
test@lists.canoo.com<br><b>Subject:</b> [Webtest] passing parameters betwee=
n two xml files<br></font><br></div>
<div></div>
<table border=3D"0" cellpadding=3D"0" cellspacing=3D"0">
<tbody>
<tr>
<td valign=3D"top">Hi All,<br>Can any one help me in passing parameters bet=
ween two<br>xml files.<br>With the following script(Script a1 is xml file1 =
and 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;webte=
st name=3D"a1"&gt;<br>&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;steps&g=
t;<br>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br>&lt;scriptStep description=3D"to c=
heck 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;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br>&nbsp; {<br>&nbsp; step.setWebtestProp=
erty('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"webt=
est.home" location=3D"C:/Program Files/webtest" /&gt;<br>&nbsp; &lt;import =
file=3D"${webtest.home}/lib/taskdef.xml"/&gt;<br>&nbsp;&nbsp; &lt;ant antfi=
le=3D"f1.xml" dir=3D"." inheritrefs=3D"true" target=3D"main"&gt; <br>&nbsp;=
 &lt;property name=3D"webtest.connectioninitializer" value=3D"com.canoo.web=
test.security.SunJsseBaseConnectionInitializer" /&gt;<br>&nbsp; &lt;propert=
y name=3D"webtest.truststore.file" value=3D"C:\Program 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; <br>&nbsp;&nbsp; =
&nbsp;<br>&nbsp;&nbsp; &nbsp;&lt;property name=3D"n" value=3D"wwwww"/&gt;<b=
r>&nbsp;&nbsp; &lt;!-- &lt;property name=3D"a" value=3D"TEST2222"/&gt; --&g=
t;<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=3D"1">
Did you know? You can CHAT without downloading messenger. <a rel=3D"nofollo=
w" target=3D"_blank" href=3D"http://in.rd.yahoo.com/tagline_webmessenger_2/=
*http://in.webmessenger.yahoo.com/">Click here</a></div></blockquote></td><=
/tr></tbody></table><br>
<hr size=3D"1">
Unlimited freedom, unlimited storage. <a rel=3D"nofollow" target=3D"_blank"=
 href=3D"http://in.rd.yahoo.com/tagline_mail_2/*http://help.yahoo.com/l/in/=
yahoo/mail/yahoomail/tools/tools-08.html/">Get it now</a> </div></blockquot=
e></td></tr></tbody></table><br>


      <hr size=3D"1"> Connect with friends all over the world. <a rel=3D"no=
follow" target=3D"_blank" href=3D"http://in.rd.yahoo.com/tagline_messenger_=
1/*http://in.messenger.yahoo.com/?wm=3Dn/"> Get Yahoo! India Messenger.</a>=
</div></blockquote></td></tr></table><br>=0A=0A=0A=0A      <!--2--><hr size=
=3D1></hr> Unlimited freedom, unlimited storage. <a href=3D"http://in.rd.ya=
hoo.com/tagline_mail_2/*http://help.yahoo.com/l/in/yahoo/mail/yahoomail/too=
ls/tools-08.html/">Get it now</a>
--0-2070995967-1221636667=:22109--