Forum Discussion

ZP's avatar
ZP
Occasional Contributor
6 years ago

ReadyAPI - Dynamic POST using .xml files or using .csv file that are saved in the directory

I am using ReadyAPI (SOAPUI) POST method.    I would like to POST content from an external file.    1) In the media type drop down I select application/xml OR application/json 2) And in the...
  • richie's avatar
    6 years ago
    Hi ZP,

    Yep this works for REST requests, but you won't include the 'path' to the file in the request, but if you're using a directory datasource (as ypu appear to describe) then each of your files will be loaded into a single property and within the request field you simply reference the datasource property. (e.g. something like '${#datasource#dataprop}', depending on the name of your datasource and property name)
    I'm driving at moment, but will answer properly with complete details once i get into work (unless someone else answers before then)

    Cheers,

    Rich