0

I have some idea that, HTML link parser, HTTP sampler will help..I try to use it but unfortunatly didn't succeed in doing so..

Will act something like spider...

Neha Gupta
  • 1
  • 1
  • 1
  • I think its functional testing and not performance, Though Jmeter is not designed to do such tasks but still if you want to do it then possibly no other way than recording script for all links (which is same as doing it manually) – Nachiket Kate Dec 29 '14 at 10:28

3 Answers3

1

Option 1

Use HTML Link Parser as follows:

  • Thread Group
    • Initial HTTP Request to yourdomain.org
    • While Controller (can be blank)
      • HTTP Request which will check links. Use yourdomain.org as a Server Name and .* as Path
        • HTML Link Parser

This scenario will visit all the links. However it will stop on the first failure and you won't be able to tell whether only one link is broken or there are more.

Option 2

Use i.e. Regular Expression Extractor, XPath Extractor or CSS/JQuery Extractor in combination with ForEach Controller. This scenario will iterate each single link so you will be able to tell which one is broken.

For more information on implementing Option 2 refer to Using Regular Expressions in JMeter guide.

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
1

Instead of Link Parser - we can create a robust test plan just by using Regular Expression Extractor.

Find the sample tets plan.

enter image description here

For more info, visit the below link.

http://www.testautomationguru.com/jmeter-find-broken-links/

vins
  • 15,030
  • 3
  • 36
  • 47
0

Use LinkChecker.It is a tool for test all links present on webpage.

Sagar007
  • 848
  • 1
  • 13
  • 33