You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Beecher Greenman <be...@aol.com> on 2003/09/16 16:25:25 UTC
[Newbie] HTML Validation Assertion?
I'm still pretty new to JMeter, though I've been impressed with its
capabilities thus far. However, I've got a question about the assertions
currently available.
I'm delighted to see that JMeter uses Tidy as an HTML parser. My
question is, is there any way I can use this to validate HTML in my
responses as an assertion? 1.9.1 has an XML assertion for well-formed
XML, but the site I'm testing would prefer to validate as HTML 4.01
Transitional. Is there something out there which can validate HTML? If
not, how difficult would it be to write an assertion for it? I noticed
that the developers' manual doesn't appear to have a section on writing
assertions.
Re: [Newbie] HTML Validation Assertion?
Posted by ms...@apache.org.
The developers manual doesn't have anything of much use.
Writing new components should be done by copying existing
examples. There is a lot of core functionality abstracted (into
abstract classes) so you mostly only have to pay attention to the
functionality you are implementing (and also a GUI with whatever
elements you need). I would look at the current code for the
XMLAssertion and the ResponseAssertion to get you started.
Later, when you can't get your new component to appear in the GUI
menus, check back and we'll fill you in on the rest of the secrets to
developing for JMeter.
-Mike
On 16 Sep 2003 at 10:25, by way of Millennium wrote:
> I'm still pretty new to JMeter, though I've been impressed with its
> capabilities thus far. However, I've got a question about the assertions
> currently available.
>
> I'm delighted to see that JMeter uses Tidy as an HTML parser.
My
> question is, is there any way I can use this to validate HTML in
my
> responses as an assertion? 1.9.1 has an XML assertion for well-
formed
> XML, but the site I'm testing would prefer to validate as HTML
4.01
> Transitional. Is there something out there which can validate
HTML? If
> not, how difficult would it be to write an assertion for it? I noticed
> that the developers' manual doesn't appear to have a section on
writing
> assertions.
>
>
>
>
> ---------------------------------------------------------------------
> 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: [Newbie] HTML Validation Assertion?
Posted by peter lin <jm...@yahoo.com>.
Tidy can be used to validate HTML, but the way
HttpSamplerFull works is it just uses it to clean up
the HTML.
peter
--- Beecher Greenman <be...@aol.com> wrote:
> I'm still pretty new to JMeter, though I've been
> impressed with its
> capabilities thus far. However, I've got a question
> about the assertions
> currently available.
>
> I'm delighted to see that JMeter uses Tidy as an
> HTML parser. My
> question is, is there any way I can use this to
> validate HTML in my
> responses as an assertion? 1.9.1 has an XML
> assertion for well-formed
> XML, but the site I'm testing would prefer to
> validate as HTML 4.01
> Transitional. Is there something out there which can
> validate HTML? If
> not, how difficult would it be to write an assertion
> for it? I noticed
> that the developers' manual doesn't appear to have a
> section on writing
> assertions.
>
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
>
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: [Newbie] HTML Validation Assertion?
Posted by ms...@apache.org.
The developers manual doesn't have anything of much use.
Writing new components should be done by copying existing
examples. There is a lot of core functionality abstracted (into
abstract classes) so you mostly only have to pay attention to the
functionality you are implementing (and also a GUI with whatever
elements you need). I would look at the current code for the
XMLAssertion and the ResponseAssertion to get you started.
Later, when you can't get your new component to appear in the GUI
menus, check back and we'll fill you in on the rest of the secrets to
developing for JMeter.
-Mike
On 16 Sep 2003 at 10:25, by way of Millennium wrote:
> I'm still pretty new to JMeter, though I've been impressed with its
> capabilities thus far. However, I've got a question about the assertions
> currently available.
>
> I'm delighted to see that JMeter uses Tidy as an HTML parser.
My
> question is, is there any way I can use this to validate HTML in
my
> responses as an assertion? 1.9.1 has an XML assertion for well-
formed
> XML, but the site I'm testing would prefer to validate as HTML
4.01
> Transitional. Is there something out there which can validate
HTML? If
> not, how difficult would it be to write an assertion for it? I noticed
> that the developers' manual doesn't appear to have a section on
writing
> assertions.
>
>
>
>
> ---------------------------------------------------------------------
> 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
Re: [Newbie] HTML Validation Assertion?
Posted by peter lin <jm...@yahoo.com>.
Tidy can be used to validate HTML, but the way
HttpSamplerFull works is it just uses it to clean up
the HTML.
peter
--- Beecher Greenman <be...@aol.com> wrote:
> I'm still pretty new to JMeter, though I've been
> impressed with its
> capabilities thus far. However, I've got a question
> about the assertions
> currently available.
>
> I'm delighted to see that JMeter uses Tidy as an
> HTML parser. My
> question is, is there any way I can use this to
> validate HTML in my
> responses as an assertion? 1.9.1 has an XML
> assertion for well-formed
> XML, but the site I'm testing would prefer to
> validate as HTML 4.01
> Transitional. Is there something out there which can
> validate HTML? If
> not, how difficult would it be to write an assertion
> for it? I noticed
> that the developers' manual doesn't appear to have a
> section on writing
> assertions.
>
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
>
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com