Forum Discussion

liviomex's avatar
liviomex
New Contributor
11 years ago

Datasource & file upload

Hi,

I' m testing the nice soapUI pro feature that allow to pass the data to send to a web service using a datasource.

The system is nice and runs well, what I would need is to upload different files for each test request.

for instance:

I created a simple grid with three colums, each of them contains the following:

the id of a record the web service service must associate with a pdf file
the file name
the content id of the file

In the test request I can easily associate the xml fields with the datasource data, what I ' m not able to do is to associate the correct pdf file to attach to each single request: is there a way to do this sort of action?

Regards
Livio
  • GiscardN's avatar
    GiscardN
    Frequent Contributor
    Hi,

    In the Attachments tab at the bottom of your request, you can add the file path using property expansion.
    You can use the right-click -> Get Data... functionality in any place in your Request for instance (just to build automatically the property expansion from your DataSource), then copy it to the Name field on the Attachments tab of your request.

    Regards,

    SmartBear Software