[Webtest] use of propertytable
Dierk Koenig
webtest@lists.canoo.com
Wed, 13 Oct 2004 17:06:45 +0200
Hi,
propertytable is a task, but not a step.
You need to put it around the testSpec like
<target name="case">
<propertytable container="${data.dir}/users.xls"
table="user" filterclass="All" >
<testSpec name="create_new_user" >
&config;
<steps>
<echo>${user.nick} ${user.first} ${user.last}</echo>
<invoke url="adduser.php" stepid="" />
</steps>
</testSpec>
</propertytable>
</target>
I'm not sure whether the webapp will now do what you intend
as every add is now in new session.
cheers
Mittie
> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of Sebastien Mathy
> Sent: Mittwoch, 13. Oktober 2004 16:58
> To: webtest@lists.canoo.com
> Subject: [Webtest] use of propertytable
>
>
> Hi,
> I have another question.
> I would like to use a <propertytable>.
> I'm able to run the example provided on this page :
> http://webtest-community.canoo.com/wiki/space/PropertyTable/Examples
>
> But now I would like to insert in my groupware 2 users. I have a
> spreadsheet whith 2 users and I do something like :
>
> <target name="case">
> <testSpec name="create_new_user" >
> &config;
> <steps>
> <propertytable container="${data.dir}/users.xls"
> table="user" filterclass="All" >
> <echo>${user.nick} ${user.first} ${user.last}</echo>
> <invoke url="adduser.php" stepid="" />
> <!-- here i addd the user
> </propertytable>
> </steps>
> </testSpec>
> </target>
>
> But I have this error :
> Task must be of type "Step": propertytable at create_new_user.xml:16:
> is of type com.canoo.ant.task.PropertyTableTask
>
> Regards
>
>
> --
> Sebastien Mathy
>
>