Forum Discussion

TomKelley's avatar
13 years ago

Send XML file names from directory in a datasink

Hi,

I have a project where my datasource is a folder that contains sample xml files that I grab and send through the web service I am testing. For example:

C:\My_Xmls\Scenario1.xml
C:\My_Xmls\Scenario2.xml
C:\My_Xmls\Scenario3.xml

The process works just fine to cycle through each xml, send it through the service and then capture values from the request or response. What I can't figure out is how how to push the file name as a PropertyTransfer into the DataSink. My results today look like:

Good,
Good,
Bad

Since I control the order that SOAPUI picks the xmls, I don't know how to associate the response that I'm getting to the request. There a ton of xmls that I'm cycling through, they are large files and don't have unique keys that I could consistently use to identify them within the xml. I need to rely on the file name. Is there a way to pull the file name into the results so it looks like this?

Scenario3.xml, Good
Scenario1.xml, Good
Scenario2.xml, Bad

Thanks.

Tom
No RepliesBe the first to reply