Testing links in a web application

I need to check links inside a web application. I looked at a couple of tools (Xenu, various browser plugins, link-checker (ruby)). Nothing matches my needs, which I will discuss below.

  • I need to pass the registration form Test
  • must be restarted for different types of users (multiple sets of login credentials)
  • would like to automate this under ci server (Jenkins)
  • the ability to visit the site

Does anyone have any ideas? Bonus if I can use Ruby for this!

+1
source share
1 answer

What you ask for is beyond the scope of most test tools when you drop the site spider feature.

This final requirement pushes you into the field of manual coding. Using the Mechanize gem, you can do all of this, but you can code a lot of site navigation.

The mechanism uses Nokogiri internally, so it’s easy to capture all the links on the page that you could store in a database that needs to be checked by another thread or some subsequent code. However, writing a spider is not difficult if you own the pages that you click, because you can be quite cruel in accessing the server and let the code run at full speed without worrying that it is forbidden to overuse the strip transmission.

+2
source

All Articles