Yes, see:

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Response_Assertion

If you meant the | to be taken literally, then just prefix it with \.

S.
On 5/30/05, Sander Stevens <[EMAIL PROTECTED]> wrote:
> So you are saying that I have to use regular expressions to match?
> 
> Sander
> 
> -----Original Message-----
> From: sebb [mailto:[EMAIL PROTECTED]
> Sent: maandag 30 mei 2005 14:57
> To: JMeter Users List
> Subject: Re: Pattern to match
> 
> On 5/30/05, Sander Stevens <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I am using a response assertion for an html response.
> > Response field to Test: text response
> > Pattern Matching Rules: Contains
> > Pattern to test: 1|0_12345678_1|999
> 
> This will match "1"
> 
> >
> > Html response:
> > <html>
> > <head>
> > <link href="css/fakeispmessage.css" type="text/css" rel="stylesheet"
> />
> > </head>
> > <body>
> > <table class="maintable">
> >   <tr>
> >     <td valign="top">
> > <h1>Fake ISP Messages</h1>
> 
> This contains "1"
> 
> > <p>Er is een fout opgetreden!
> > <br>
> > <div class="error">Cannot forward after response has been
> committed</div>
> > </p>
> > <br>
> > <br>
> > <br>
> > <a href="javascript:history.go(-1);">back</a>
> 
> This contains "1" as well.
> 
> > |
> > <a href="message">main</a>
> >     </td>
> >   </tr>
> > </table>
> > </body>
> > </html>
> >
> > And as you can see: the pattern I am looking for is not available in
> this response. But still my result is black. Should be red. Anybody know
> what I am doing wrong?
> 
> See above.
> 
> >
> >
> >
> > Met Vriendelijke Groet,
> >
> > Sander Stevens
> > KPN Internet Solutions
> > Internet Technologies Amersfoort
> > Tel: 030-6588500 (ex. 88633)
> > Fax: 033-4513101
> > Mobiel: 06-46404673
> > E-mail:[EMAIL PROTECTED]
> > MSN: [EMAIL PROTECTED]
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to