[Webtest] use of propertytable
Sébastien Mathy
webtest@lists.canoo.com
Wed, 13 Oct 2004 17:29:05 +0200
This is a multi-part message in MIME format.
--------------000207090602050104010803
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
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: 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
>>
>>
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
>
--
Sebastien Mathy
Ingénieur de test
__
KEREVAL
Immeuble Le Gallium
80, avenue des Buttes de Coesmes
35700 RENNES - FRANCE
http://www.kereval.com
--------------000207090602050104010803
Content-Type: text/x-vcard; charset=utf-8;
name="sebastien.mathy.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="sebastien.mathy.vcf"
begin:vcard
fn;quoted-printable:S=C3=A9bastien Mathy
n;quoted-printable:Mathy;S=C3=A9bastien
email;internet:sebastien.mathy@kereval.com
x-mozilla-html:FALSE
version:2.1
end:vcard
--------------000207090602050104010803--