jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Response assertion with json format
Date Wed, 27 Jan 2010 16:53:22 GMT
On 27/01/2010, Luca Borz <lborz@opera21.it> wrote:
> Hi Carl,
>
>  my problem is multi-line.
>  For example, I have the response like this
>
>  {"result":
>         {"position":1,
>         "items":[{"type":
>
>  And I look for:
>
>  "position":1,
>         "items":
>
>
>  I use this expressions:
>
>  - "position":1,\n"items":
>  - ^"position":1,$^"items":$
>  - ^"position":1,$\n^"items":$
>  - \s*"position":1,\n+\s*"items":
>  - (?s)"position":1,.+?"items"
>
>  But none of them works.

(?s)"position":1,.+?"items"

works for me, as does:

(?s)"position":1,\s+"items"

There must be some other problem here.

Have you tried using http://jakarta.apache.org/oro/demo.html to check the RE?

>  JMeter work correctly if search only one line at a time, like you Carl.
>  Someone can give me an help?
>
>  Thanks, Luca.
>
>  --
>  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: lborz@opera21.it <mailto:lborz@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-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
>
>

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


Mime
View raw message