Hi Luca,
Here is a snippet of the JSON response I get:
{"result":{"position":1,"items":[{"type":
Make sure for your test plan you have the User Defined variable
Accept-Encoding: application/json
I use a response assertion and I look for the pattern "result" for Main
Sample only and response field to test is set to text.
Good luck,
Carl
On 1/27/10 5:27 AM, "Luca Borz" <[email protected]> wrote:
> Hi,
>
> i'm a newbie of JMeter. I'm using it for testing my website. I'm
> creating test for service of my site.
> I invoke correctly it with a Http Request with some parameters. The body
> response use Json as format. I create a Response assertion with this option:
> - main samples only;
> - Response code (but I have also tried the other options for Response
> Field to test);
> - I choose Contains as Pattern match rules (but also tried the option
> Matches);
> - as parameter I use part of the message visible in Response data of
> View Result Tree;
> The assertions is always false but in the Result Tree I can clearly see
> the fragment of response that I used as parameter for assertion. Where
> is the fault?
>
> Thanks in advance.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]