You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Janusz Kowalczyk <ko...@gmail.com> on 2013/11/03 11:22:05 UTC

Re: Validate XML element and attribute values in HTTP response

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" <Ro...@fmr.com> 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!
>

RE: Validate XML element and attribute values in HTTP response

Posted by "Lanigan, Ronan" <Ro...@fmr.com>.
Thanks so much for the reply.

You're right, I am trying to do functional testing, and I did consider soap ui before. I found that difficult to use also. I might try and look into that again. Appreciate the input.

The information in this email and subsequent attachments may contain confidential information that is intended solely for the attention and use of the named addressee(s). This message or any part thereof must not be disclosed, copied, distributed or retained by any person without authorization from Fidelity Investments.


-----Original Message-----
From: Janusz Kowalczyk [mailto:kowalczykjanusz@gmail.com] 
Sent: 03 November 2013 10:22
To: JMeter Users List
Subject: Re: Validate XML element and attribute values in HTTP response

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" <Ro...@fmr.com> 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!
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: Validate XML element and attribute values in HTTP response

Posted by UBIK LOAD PACK Support <su...@ubikloadpack.com>.
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 <kowalczykjanusz@gmail.com
> 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" <Ro...@fmr.com> 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>