On 24 April 2014 20:13, mpistella <mpiste...@kingsisle.com> wrote:
> sebb-2-2 wrote
>> On 24 April 2014 19:11, mpistella &lt;
>
>> mpistella@
>
>> &gt; wrote:
>>> cthoong wrote
>>>> Thought can't do "OR" condition in assertion, now only found out just
>>>> add
>>>> " | " between 2 set of value in 1 "Patterns to Test" instead of 2
>>>> Patterns.
>>>
>>> You actually must add two of the "or" vertical lines like so: "||"
>>> between
>>> 2 sets of values in only one "Patterns to Test"
>>
>> I don't think that is correct.
>> A single vertical bar is the standard meta character used to separate
>> alternates.
>
> I do agree that it is the standard but for some reason when I only had one
> "|" it just treated it as one single pattern. When I added the second "|" it
> treated it as two patterns.
>
> This is what I have as my pattern to test and it is working right now:
> {"result":"ERROR"} || {"result":"FAIL"}
>

Then there's something else wrong.

Two adjacent "|" chars will match everything if using "Contains" and
the empty string if using "Matches"

>
>
> --
> View this message in context: 
> http://jmeter.512774.n5.nabble.com/response-assertion-using-multiple-patterns-tp4442287p5719884.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail: user-h...@jmeter.apache.org
>

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

Reply via email to