You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Sonam Chauhan <so...@ce.com.au> on 2004/02/17 04:31:34 UTC
JMeter for link checking?
A colleague asked if there was a way to use JMeter for link checking a
website?
I found an example in the user manual here that used the HTML link parser to
post random values to a page:
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#HTML_Li
nk_Parser
I modified the example by setting the 'Path' in the second HTTP sampler to
'.*'. This makes it visits random links from the first page.
The JMX looks like this:
------------------------------
Thread Group
|_ HTTP Sampler 1: Access HTML page with initial links
|_ HTTP Sampler 2: Link Request (Path = '.*')
|_ HTML Link Parser
------------------------------
The problem is when the loop count is increased, this first sampler is
re-initialized in each loop - hence some links end up being visited multiple
times, and some links are not visited at all.
Is there a way to visit all links on a single page once?
If not, can, say, a Java sampler access values from the link parser
pre-processor?
With regards,
Sonam Chauhan
--
Corporate Express Australia Ltd.
Phone: +61-2-9335-0725, Fax: 9335-0753, Email: sonamc@ce.com.au
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org