4 messages in com.canoo.lists.webtestRe: [Webtest] use of propertytable
FromSent OnAttachments
Sébastien Mathy13 Oct 2004 07:57 
Dierk Koenig13 Oct 2004 08:06 
Sébastien Mathy13 Oct 2004 08:28 
Dierk Koenig13 Oct 2004 08:48 
Subject:Re: [Webtest] use of propertytable
From:Sébastien Mathy (seba@kereval.com)
Date:10/13/2004 08:28:43 AM
List:com.canoo.lists.webtest

ok I've tried this solution, but the problem is that it creates many test cases. Is it possible to do something equivalent using the repeat step?

Dierk Koenig a écrit :

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: webt@lists.canoo.com [mailto:webt@lists.canoo.com]On Behalf Of Sebastien Mathy Sent: Mittwoch, 13. Oktober 2004 16:58 To: webt@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 Ingénieur de test __

KEREVAL Immeuble Le Gallium 80, avenue des Buttes de Coesmes 35700 RENNES - FRANCE http://www.kereval.com