mardi 25 août 2015

Protractor: Is it possible to test that there are no 404 in my app?

I'm new to protractor, I want to write a test to see that there are no anchors with urls giving 404 errors.

I've seen this How to test html links with protractor?, but is for one determined link only, I want to do it for all links in the page.

The test should pass for the http status 200, as stated here How to use protractor to get the response status code and response text?

I have two questions:

  • Does this test makes sense in protractor?
  • Is it possible to test this? If so, how?

Aucun commentaire:

Enregistrer un commentaire