You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Dan Yuen <dy...@yahoo.com> on 2003/10/01 00:39:17 UTC
Using Response Assertion to evaluate HTML details
I've started looking at JMeter for testing some html
pages on a web app. I was wondering how much
flexibility i might have with the regular expressions
in the Response Assertion.
I've seen how an Assertion Results can report back
whether or not it finds an occurrence of a certain
pattern in a line. But can I use this feature to, for
example, verify that my response is an html page with
exactly eight occurrences of the word "sample" within
a
<pre></pre> tag somewhere in the body of the page?
Am I limited to testing for only patterns contained in
a single line?
Thanks very much.
Dan Yuen
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
Re: Using Response Assertion to evaluate HTML details
Posted by ms...@apache.org.
Currently, the Response Assertion only supports a yes/no response
to whether the text includes the regex. Supporting match counts
would be useful too, I think.
-Mike
On 30 Sep 2003 at 15:39, Dan Yuen wrote:
> I've started looking at JMeter for testing some html
> pages on a web app. I was wondering how much
> flexibility i might have with the regular expressions
> in the Response Assertion.
>
> I've seen how an Assertion Results can report back
> whether or not it finds an occurrence of a certain
> pattern in a line. But can I use this feature to, for
> example, verify that my response is an html page with
> exactly eight occurrences of the word "sample" within
> a
> <pre></pre> tag somewhere in the body of the page?
>
> Am I limited to testing for only patterns contained in
> a single line?
>
> Thanks very much.
>
> Dan Yuen
>
>
>
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-
unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-
help@jakarta.apache.org
>
--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777
Re: Using Response Assertion to evaluate HTML details
Posted by ms...@apache.org.
Currently, the Response Assertion only supports a yes/no response
to whether the text includes the regex. Supporting match counts
would be useful too, I think.
-Mike
On 30 Sep 2003 at 15:39, Dan Yuen wrote:
> I've started looking at JMeter for testing some html
> pages on a web app. I was wondering how much
> flexibility i might have with the regular expressions
> in the Response Assertion.
>
> I've seen how an Assertion Results can report back
> whether or not it finds an occurrence of a certain
> pattern in a line. But can I use this feature to, for
> example, verify that my response is an html page with
> exactly eight occurrences of the word "sample" within
> a
> <pre></pre> tag somewhere in the body of the page?
>
> Am I limited to testing for only patterns contained in
> a single line?
>
> Thanks very much.
>
> Dan Yuen
>
>
>
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-
unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-
help@jakarta.apache.org
>
--
Michael Stover
mstover1@apache.org
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org