On 27/01/2010, Luca Borz <lb...@opera21.it> 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);
Response Code is the 3 digit code, e.g. 200, 404. You need Text Response. > - 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? The match rule is probably wrong. > Thanks in advance. > > -- > Opera21 > *Luca Borz* > Junior Programmer > > *Opera21 Nordest S.r.l.* > *Rovereto (TN)* 38068 - Via F. Zeni, 8 - Tel. 02.69374.426 - Fax > 0464.443360 > *Vimodrone (MI)* 20090 - Via L. Cadorna, 71/A - Tel. 02.69374.1 - Fax > 02.69374.300 > *Bolzano (BZ)* 39100 - Via L. Galvani, 23 - Tel. 0471.502021 - Fax > 0471.501734 e-mail: lb...@opera21.it <mailto:lb...@opera21.it> > website: www.opera21.it <http://www.opera21.it> > > Milano <http://www.opera21.it/it-IT/654it.html> | Roma > <http://www.opera21.it/it-IT/655it.html> | Napoli > <http://www.opera21.it/it-IT/656it.html> | Bolzano > <http://www.opera21.it/it-IT/Bolzanoit.html> | Rovereto > <http://www.opera21.it/it-IT/658it.html> | Genova > <http://www.opera21.it/it-IT/659it.html> | Madrid > <http://www.opera21.it/it-IT/660it.html> | > ----------------------------------------------------------------------------------------------- > 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: > jmeter-user-unsubscr...@jakarta.apache.org > For additional commands, e-mail: > jmeter-user-h...@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org