cancel
Showing results for 
Search instead for 
Did you mean: 

Reading in a XML File

Super Contributor

Reading in a XML File

Hello,
I have a very large XML file 20MB and wanted to know if there is some way I could read it into a datasource.

I have to check the XML file for an occurrence of a certain element. If the file contains the element 'Program_ID', I mark the test case as Pass.

What would be the best way to do this.

Thanks

Ali
3 REPLIES 3
Super Contributor

Re: Reading in a XML File

I tried using 2 datasources.

1. use directory datasource first to read the xml file
2. use xml datasource to read the imported file in XML format.

Since the file is quite large, soapui runs out of memory.

any way to read the file in smaller chunks ?

Ali
Super Contributor

Re: Reading in a XML File

any update on this ?
Super Contributor

Re: Reading in a XML File

Hi Ali,

sorry.. hmm.. not anything in soapUI, maybe there is support for reading large xml files in the groovy XML classes (http://groovy.codehaus.org/Processing+XML) which could then be combined with a Groovy DataSource?

regards!

/Ole
eviware.com
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors