[Webtest] problem with properties
Julien Chambert
webtest@lists.canoo.com
Wed, 13 Sep 2006 11:27:43 +0200
------=_Part_93457_12228569.1158139663783
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
that's it.
thank you
2006/9/13, Paul King <paulk@asert.com.au>:
>
>
> Is it just a case of round versus curly braces?
>
> Julien Chambert wrote:
> > hello everybody,
> >
> >
> > i have a problem: I don't manage to handle my properties files.
> >
> > here is my code
> > -------------------------------------------------------------------
> > test.xml
> > -----------------------------------------------------------------
> > <project name="FullSuite" default="testSuite" basedir=".">
> >
> > <property name="test.xml" value="tests/test.xml" />
> >
> > <target name="testSuite" >
> > <ant antfile="${test.xml}">
> > <property file="test_properties/Mytest.properties"/>
> > </ant>
> > </target>
> >
> > </project>
> >
> -----------------------------------------------------------------------------
> >
> > tests/test.xml
> >
> -----------------------------------------------------------------------------
> > <?xml version="1.0"?>
> >
> > <!DOCTYPE project [
> > <!ENTITY config SYSTEM "config.xml ">
> > <!ENTITY testVolontaire SYSTEM "testVolontaire.xml">
> > <!ENTITY testRecrut SYSTEM "testRecrut.xml">
> > <!ENTITY verif SYSTEM "verif.xml">
> > ]>
> >
> >
> > <project name="test" default="oneTest" basedir="..">
> > <property name="webtest.home" location="C:/canoo" />
> > <import file="${webtest.home }/lib/taskdef.xml"/>
> > <target name="oneTest">
> > <webtest name="$(test.Name)">
> > &config;
> > <steps>
> > <ifStep description="if volontaire: $( test.volontaire)"
> > test="$(test.volontaire)">
> > &testVolontaire;
> > </ifStep>
> > <ifStep description="else" unless="$(test.volontaire )">
> > &testRecrut;
> > </ifStep>
> > &verif;
> > </steps>
> > </webtest>
> > </target>
> > </project>
> >
> ----------------------------------------------------------------------------------------------------------------
> > properties/MyTest.properties
> >
> --------------------------------------------------------------------------------------------------------------
> >
> > page.volontaire=t.php
> > page.recrutement=t_recrut.php
> > page.test=test-form/test.html
> >
> > test.Name=MyTest
> > test.volontaire=true
> > test.ResultOk=true
> >
> ---------------------------------------------------------------------------------------------------------------
> >
> >
> > the problem is that it doesn't care of my properties. for example it
> > displaies:
> > [ifStep] INFO (com.canoo.webtest.steps.Step) - >>>> Start
> > Step: ifStep "if volontaire: $(test.volontaire )" (1/122)
> > it's the same for test.Name.
> > i'm pretty sure it doesn't come from the properties file because in
> > testRecrut.xml, a property page.volontaire is used and works fine.
> >
> > I don't understand where is the problem.
> >
> > thank you for your future answers
> >
> > Julien Chambert
> >
> >
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
------=_Part_93457_12228569.1158139663783
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
that's it.<br>thank you<br><br><br><div><span class="gmail_quote">2006/9/13, Paul King <<a href="mailto:paulk@asert.com.au">paulk@asert.com.au</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Is it just a case of round versus curly braces?<br><br>Julien Chambert wrote:<br>> hello everybody,<br>><br>><br>> i have a problem: I don't manage to handle my properties files.<br>><br>> here is my code
<br>> -------------------------------------------------------------------<br>> test.xml<br>> -----------------------------------------------------------------<br>> <project name="FullSuite" default="testSuite" basedir=".">
<br>><br>> <property name="test.xml" value="tests/test.xml" /><br>><br>> <target name="testSuite" ><br>> <ant antfile="${test.xml}"><br>> <property file="test_properties/Mytest.properties"/>
<br>> </ant><br>> </target><br>><br>> </project><br>> -----------------------------------------------------------------------------<br>><br>> tests/test.xml<br>> -----------------------------------------------------------------------------
<br>> <?xml version="1.0"?><br>><br>> <!DOCTYPE project [<br>> <!ENTITY config SYSTEM "config.xml "><br>> <!ENTITY testVolontaire SYSTEM "testVolontaire.xml
"><br>> <!ENTITY testRecrut SYSTEM "testRecrut.xml"><br>> <!ENTITY verif SYSTEM "verif.xml"><br>> ]><br>><br>><br>> <project name="test" default="oneTest" basedir="..">
<br>> <property name="webtest.home" location="C:/canoo" /><br>> <import file="${webtest.home }/lib/taskdef.xml"/><br>> <target name="oneTest">
<br>> <webtest name="$(test.Name)"><br>> &config;<br>> <steps><br>> <ifStep description="if volontaire: $( test.volontaire)"
<br>> test="$(test.volontaire)"><br>> &testVolontaire;<br>> </ifStep><br>> <ifStep description="else" unless="$(test.volontaire
)"><br>> &testRecrut;<br>> </ifStep><br>> &verif;<br>> </steps><br>> </webtest><br>> </target>
<br>> </project><br>> ----------------------------------------------------------------------------------------------------------------<br>> properties/MyTest.properties<br>> --------------------------------------------------------------------------------------------------------------
<br>><br>> page.volontaire=t.php<br>> page.recrutement=t_recrut.php<br>> page.test=test-form/test.html<br>><br>> test.Name=MyTest<br>> test.volontaire=true<br>> test.ResultOk=true<br>> ---------------------------------------------------------------------------------------------------------------
<br>><br>><br>> the problem is that it doesn't care of my properties. for example it<br>> displaies:<br>> [ifStep] INFO (com.canoo.webtest.steps.Step) - >>>> Start<br>> Step: ifStep "if volontaire: $(
test.volontaire )" (1/122)<br>> it's the same for test.Name.<br>> i'm pretty sure it doesn't come from the properties file because in<br>> testRecrut.xml, a property page.volontaire is used and works fine.<br>
><br>> I don't understand where is the problem.<br>><br>> thank you for your future answers<br>><br>> Julien Chambert<br>><br>><br><br>_______________________________________________<br>WebTest mailing list
<br><a href="mailto:WebTest@lists.canoo.com">WebTest@lists.canoo.com</a><br><a href="http://lists.canoo.com/mailman/listinfo/webtest">http://lists.canoo.com/mailman/listinfo/webtest</a><br></blockquote></div><br>
------=_Part_93457_12228569.1158139663783--