cancel
Showing results for 
Search instead for 
Did you mean: 

XML File as a datasource ?

Highlighted
Super Contributor

XML File as a datasource ?

Is it possible to have an XML file as a datasource and then place assertions on the loaded XML file.

One of our database jobs creates some XML files on some network drive. I would like to check the contents of that XML file. If I can do this without writing some groovy code, that would be great.

Thanks

Ali
8 REPLIES 8
Highlighted

Re: XML File as a datasource ?

Hello,

You can use XML Data Source as response from some other  test step, check :

http://www.soapui.org/userguide/../user ... estep.html

You could first have a file or directory datasource that reads the file, and then
an xml datasource that uses that property. But now you need groovy script to check
data.

robert


 Join the virtual SmartBear Connect user conference on April 27-28! Get your free virtual ticket today!
Highlighted
Super Contributor

Re: XML File as a datasource ?

I guess could this be moved to a feature request section then.  I would prefer not to write groovy scripts to create new assertions.

Thanks

Ali
Highlighted

Re: XML File as a datasource ?

Hi Ali,

yes.. we have discussed a "Property Assertion" teststep that would allow you to assert any property values with more complex assertion logic as well.. that would meet your requirements, right?

regards,

/Ole
eviware.com


 Join the virtual SmartBear Connect user conference on April 27-28! Get your free virtual ticket today!
Highlighted
Super Contributor

Re: XML File as a datasource ?

sounds good but would have to see how it works.

Ali
Highlighted
Super Contributor

Re: XML File as a datasource ?

Hi Robert,

I am trying to read in a xml file using file datasource but it does not work. Can you tell me how to read in a xml file.

Thanks

Ali
Highlighted

Re: XML File as a datasource ?

What kind of difficulty are you experiencing in reading the file as a DataSource?

The basic instructions for reading in the Xml are her:
http://www.soapui.org/userguide/functio ... DataSource

/Nenad
http://eviware.com


 Join the virtual SmartBear Connect user conference on April 27-28! Get your free virtual ticket today!
Highlighted
Super Contributor

Re: XML File as a datasource ?

is there an email address I can send the my XML file that I am trying to read.

Maybe if you can create me a simple project with a test case that reads the XML file and places an assertion to check for a few elements in the XML file, that would be great.

Thanks

Ali
Highlighted

Re: XML File as a datasource ?

Hi Ali,

please mail to support@eviware.com, we'll help you from there..

regards!

/Ole
eviware.com


 Join the virtual SmartBear Connect user conference on April 27-28! Get your free virtual ticket today!