You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Sander Stevens <S....@kpn-is.nl> on 2005/05/30 14:24:52 UTC

Pattern to match

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

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>
<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>
|
<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?




Met Vriendelijke Groet,
 
Sander Stevens
KPN Internet Solutions
Internet Technologies Amersfoort
Tel:  030-6588500 (ex. 88633)
Fax: 033-4513101
Mobiel: 06-46404673
E-mail: s.stevens@kpn-is.nl
MSN: stevens_sander@hotmail.com
 
 


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


Re: Pattern to match

Posted by sebb <se...@gmail.com>.
On 5/30/05, Sander Stevens <S....@kpn-is.nl> 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:s.stevens@kpn-is.nl
> MSN: stevens_sander@hotmail.com
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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