As far as I know, you can use variables/functions.

Are you sure that the RE is correct? 
i.e. does it match if you don't use variables?

The __log() function may be useful here - see
file:///e:/EclipseWorkspaces/jakarta-jmeter-HEAD/printable_docs/usermanual/functions.html#__log

e.g.

Pattern to test: __log(${brand}\|${ucode}\|999)

This should generate a message in the jmeter.log file.
If it does not, it suggests that the pattern cannot use vars/funcs,
but I'd be surprised if that is the case.

If it does generate a log message, you can check what the RE really was.

S.
On 5/30/05, Sander Stevens <[EMAIL PROTECTED]> wrote:
> Can I use variables in the string to match?
> Pattern to test: ${brand}\|${ucode}\|999
> 
> Will be red, but the string is available in the text (after the
> variables are translated into the correct values). I am expecting a
> black result.
> 
> 
> 
> -----Original Message-----
> From: sebb [mailto:[EMAIL PROTECTED]
> Sent: maandag 30 mei 2005 15:03
> To: Sander Stevens
> Cc: JMeter Users List
> Subject: Re: Pattern to match
> 
> Yes, see:
> 
> http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Res
> ponse_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