jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Borz <>
Subject Response assertion with json format
Date Wed, 27 Jan 2010 11:27:33 GMT

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 
- 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.

*Luca Borz*
Junior Programmer

*Opera21 Nordest S.r.l.*
*Rovereto (TN)* 38068 - Via F. Zeni, 8 - Tel. 02.69374.426 - Fax 
*Vimodrone (MI)* 20090 - Via L. Cadorna, 71/A - Tel. 02.69374.1 - Fax 
*Bolzano (BZ)* 39100 - Via L. Galvani, 23 - Tel. 0471.502021 - Fax 
0471.501734 e-mail: <>
website: <>

Milano <> | Roma 
<> | Napoli 
<> | Bolzano 
<> | Rovereto 
<> | Genova 
<> | Madrid 
<> |

Questo messaggio è destinato alle sole persone indicate e può
contenere informazioni riservate.
Se ricevuto per errore, si prega di avvisare immediatamente il
mittente e cancellare l'originale.
Ogni altro uso del messaggio è vietato.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message