Forum Discussion

Dipayan's avatar
Dipayan
Visitor
6 years ago

DataSource - Directory returning file name and not content

Hi,

 

I have one functionality where i have to load all the XML files placed in a directory and parse each XML and get a unique tag value. In order to incorporate the logic, I followed the below steps:

 

1. Added "DataSource - Directory" step.

2. Gave "Filename Filter" as *.xml

3. Added a property with a random name as "FileName".

 

I then clicked on the "Run" button and found only the file names with .xml extension getting loaded in the result and not the content of each XML.

 

Next i changed the property name to some other name (other than "FileName") and the content of the XMLs came.

 

Is there any specific keyword or property in SOAPUI PRO version named "FileName" which will by default give the File names from a directory?

 

Thanks,

Dipayan

1 Reply

  • Hello Dipayan,

     

    Yes, the Directory Data Source has the hidden custom property "fileName". I've asked our Documentation team to mention this in Help.