cancel
Showing results for 
Search instead for 
Did you mean: 

DataSource - Directory returning file name and not content

Visitor

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 1
Moderator

Re: DataSource - Directory returning file name and not content

Hello Dipayan,

 

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

Natalie
Customer Care Team

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
New Here?
Join us and watch the welcome video:
Watch the new interview
Top Kudoed Authors