You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Becky Moore <bm...@zentech.com> on 2003/12/12 15:35:55 UTC

using response assertion to detect certain type of text

One of the requirements I have to test for is a number that will begin with
a set number based on the year and end with 7 digit number for the document.
The year I can assume will remain the same for a couple more weeks but the
rest of the number is completely variable. I saw nothing in the response
assertion data to let me know how to test for a string that starts with
something specific and has a number of variable characters after that. If
this capability doesn't exist let me know. If it does exist PLEASE let me
know.

 

Thank you,

Becky

 


Re: using response assertion to detect certain type of text

Posted by Jordi Salvat i Alabart <js...@atg.com>.
Hi Becky,

the response assertion uses ORO/Perl regular expressions.

This is what you need:

Field: Text Response
Rule: Contains
Pattern: [^\d]2003\d{7}[^\d]

Hope it helps.

-- 
Salut,

Jordi.

En/na Becky Moore ha escrit:
> One of the requirements I have to test for is a number that will begin with
> a set number based on the year and end with 7 digit number for the document.
> The year I can assume will remain the same for a couple more weeks but the
> rest of the number is completely variable. I saw nothing in the response
> assertion data to let me know how to test for a string that starts with
> something specific and has a number of variable characters after that. If
> this capability doesn't exist let me know. If it does exist PLEASE let me
> know.
> 
>  
> 
> Thank you,
> 
> Becky
> 
>  
> 
> 


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