HI all,

I am quite new to webtest and try to test a form with a file upload field.

...
<clickButton label="Add new" />
<verifyText description="New rows shows (no adpack) text" text="(no adPack)"
/>
<setFileField name="multiparts[0].multipartFile" fileName="advert.aam"/>
<clickButton label="OK" />
<verifyText description="Back to advertisements list" text="Advertisements"
/>

After OK is clicked, the message cannot be verified. From the responses, I
can see taht no file was specified, that's why the form is not submitted.

I am unsure where the advert.aam File needs to go - that's why I copied it
to several directories including the one in which the webtest is executed,
the ant base directory, etc. I don't get any message from webtest telling me
that the file was not found.

Any ideas?

Thanx!
Sven

--
Sven Haiges
[EMAIL PROTECTED]

Skype: hansamann
Personal Homepage, Wiki & Blog: http://www.svenhaiges.de

Subscribe to the Grails Podcast:
http://hansamann.podspot.de/rss

Reply via email to