How can I use Selenium RC to verify our Server-Side-Redirects (301, 302)?

We have a bunch of redirects in our Apache configuration. I would like to automate the testing of redirects with Selenium, which led me to some problems:

  • Call an URL, but assert on the redirected page
  • Check the URL of the browser after redirected
  • Check Response Header, to determine the type of redirection (301, 302)

Maybe Selenium is not the best solution for this. Any other suggestions?

5
задан Yi Zeng 6 August 2013 в 01:06
поделиться