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: [EMAIL PROTECTED]
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to