If you use JMeter, you can use : 1) Method 1: - Use XPath Extractor which should enable data extraction (attribute, element content...) - Response Assertion using variable extracted by the previous XPath Extractor
2) Method 2: - Use CSS/JQuery extractor which should enable data extraction (attribute, element content...) - Response Assertion using variable extracted by the previous CSS/JQuery Extractor 3)Method 3: - Use XPath Extractor or CSS/JQuery extractor - Use JSR223 Sampler + Groovy or Javascript (as it's functional testing) to do more complex validation -- Regards Ubik Load Pack <http://ubikloadpack.com> Team Follow us on Twitter <http://twitter.com/ubikloadpack> @UbikLoadPack Cordialement L'équipe Ubik Load Pack <http://ubikloadpack.com> Suivez-nous sur Twitter <http://twitter.com/ubikloadpack> @UbikLoadPack On Sun, Nov 3, 2013 at 11:22 AM, Janusz Kowalczyk <[email protected] > wrote: > It seems to me that what you're trying to do is functional testing not load > testing. > Try using free version of soapui instead. It works really nicely with XMLs, > has plenty of features to quickly design tests. Can be executed on Jekins > etc and support java/groovy scripting. > On 31 Oct 2013 09:38, "Lanigan, Ronan" <[email protected]> wrote: > > > Hello. > > > > I am working to automate the functional testing of my application which > > returns xml over http. The XML returned can be complex, and I want to be > > able to write tests to validate the data returned in particular elements > > and/or attributes. > > > > In some cases, I'd like to verify that a value is not empty, but also > > validate it's format (it's length for example). What would be the best > way > > to achieve this? > > > > Thanks! > > > <http://twitter.com/ubikloadpack>
