You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by Jonathan Easterling <Jo...@dakotaimaging.com> on 2004/03/16 19:16:59 UTC
RE: How would I implement a new assertion for JTidy htmlvalidati on.
What I am trying to incoperate is the HTML validation (sort of like http://validator.w3.org/) that gives compliance type checks, don't think the HtmlParser can pull this off but the Tidy stuff can display all the errors as well...
-----Original Message-----
From: Michael Stover [mailto:mstover1@apache.org]
Sent: Tuesday, March 16, 2004 12:19 PM
To: JMeter Developers List
Subject: RE: How would I implement a new assertion for JTidy
htmlvalidati on.
Don't forget that JTidy won't be part of the next release. You might
want to check out the new HtmlParser that JMeter is using.
-Mike
On Tue, 2004-03-16 at 11:44, BAZLEY, Sebastian wrote:
> For basic validation, you could use the standard Regex assertion, but I
> suspect that would quickly become unwieldy...
>
> I'd suggest having a look at the XML validator as a starting point.
> Create new copies of the Sampler and its GUI, and change the relevant names.
> You can then just replace the XML validation with that done by JTidy.
>
> If you don't want to build a full sampler, you could always use a BeanShell
> script to do the validation using JTidy. This could later be converted into
> an independent sampler.
>
> S.
> -----Original Message-----
> From: Jonathan Easterling [mailto:Jonathan.Easterling@dakotaimaging.com]
> Sent: 16 March 2004 16:31
> To: jmeter-dev@jakarta.apache.org
> Subject: How would I implement a new assertion for JTidy html
> validation.
>
>
> Hello,
> I am trying to implement a new assertion, or alternatively if there
> is a better solution I would go for that as well. I would like JMeter to
> validate the HTML. I see that Tidy is already being used, think I can use
> that to check the HTML on a page by page basis.
> The question is how and where do I begin.
> Thanks,
> Jonathan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
>
>
> ___________________________________________________________________________
>
> This e-mail and the documents attached are confidential and intended solely
> for the addressee; it may also be privileged. If you receive this e-mail in
> error, please notify the sender immediately and destroy it. As its integrity
> cannot be secured on the Internet, the Atos Origin group liability cannot be
> triggered for the message content. Although the sender endeavours to maintain
> a computer virus-free network, the sender does not warrant that this
> transmission is virus-free and will not be liable for any damages resulting
> from any virus transmitted.
> ___________________________________________________________________________
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
--
Michael Stover <ms...@apache.org>
Apache Software Foundation
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
RE: How would I implement a new assertion for JTidy htmlvalidati on.
Posted by peter lin <jm...@yahoo.com>.
yup, you're absolutely correct HtmlParser does not provide validation. JTidy will, since it is DOM like. the other option is to use DOM.
peter lin
Jonathan Easterling <Jo...@dakotaimaging.com> wrote:
What I am trying to incoperate is the HTML validation (sort of like http://validator.w3.org/) that gives compliance type checks, don't think the HtmlParser can pull this off but the Tidy stuff can display all the errors as well...
-----Original Message-----
From: Michael Stover [mailto:mstover1@apache.org]
Sent: Tuesday, March 16, 2004 12:19 PM
To: JMeter Developers List
Subject: RE: How would I implement a new assertion for JTidy
htmlvalidati on.
Don't forget that JTidy won't be part of the next release. You might
want to check out the new HtmlParser that JMeter is using.
-Mike
On Tue, 2004-03-16 at 11:44, BAZLEY, Sebastian wrote:
> For basic validation, you could use the standard Regex assertion, but I
> suspect that would quickly become unwieldy...
>
> I'd suggest having a look at the XML validator as a starting point.
> Create new copies of the Sampler and its GUI, and change the relevant names.
> You can then just replace the XML validation with that done by JTidy.
>
> If you don't want to build a full sampler, you could always use a BeanShell
> script to do the validation using JTidy. This could later be converted into
> an independent sampler.
>
> S.
> -----Original Message-----
> From: Jonathan Easterling [mailto:Jonathan.Easterling@dakotaimaging.com]
> Sent: 16 March 2004 16:31
> To: jmeter-dev@jakarta.apache.org
> Subject: How would I implement a new assertion for JTidy html
> validation.
>
>
> Hello,
> I am trying to implement a new assertion, or alternatively if there
> is a better solution I would go for that as well. I would like JMeter to
> validate the HTML. I see that Tidy is already being used, think I can use
> that to check the HTML on a page by page basis.
> The question is how and where do I begin.
> Thanks,
> Jonathan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
>
>
> ___________________________________________________________________________
>
> This e-mail and the documents attached are confidential and intended solely
> for the addressee; it may also be privileged. If you receive this e-mail in
> error, please notify the sender immediately and destroy it. As its integrity
> cannot be secured on the Internet, the Atos Origin group liability cannot be
> triggered for the message content. Although the sender endeavours to maintain
> a computer virus-free network, the sender does not warrant that this
> transmission is virus-free and will not be liable for any damages resulting
> from any virus transmitted.
> ___________________________________________________________________________
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
--
Michael Stover
Apache Software Foundation
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam