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: 2 questions
Date Mon, 04 Dec 2006 14:05:17 GMT
On 04/12/06, Ed Young <ejy@summitbid.com> wrote:
> Question 1.
> I'm trying to figure out how to test for a numeric value of a
> particular character length. An example is:
> 234335675
> or
> 001454668
>
> The easy part is the numeric check:
> [0-9]
> or
> \d
>
> I'm not sure how to check the length part and combine it with the
> numeric part into the regexp.
>
> I see that
> {n}
>
> says "match exactly n times". I'm using the demo applet at:
> http://jakarta.apache.org/oro/demo.html
>  to test my regexps but so far no luck.

\d{n}

e.g.

\d{9}

You can even use

\d{1,10}

to mean 1-10 digits.

> Question 2:
> If I add a "pattern to test" is it logically AND'd to the other
> patterns I set up?

Sort of - if any match fails, then it sets the response failed flag.

> Thanks,
>
> --
> Ed
>
> ---------------------------------------------------------------------
> 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