【发布时间】:2015-08-25 12:56:42
【问题描述】:
我是量角器的新手,我想写一个测试看看没有带有 url 的锚点给出 404 错误。
我看过这个How to test html links with protractor?,但只针对一个确定的链接,我想对页面中的所有链接都这样做。
测试应该通过 http 状态 200,如此处所述How to use protractor to get the response status code and response text?
我有两个问题:
- 这个测试在量角器中有意义吗?
- 是否可以对此进行测试?如果有,怎么做?
【问题讨论】:
标签: angularjs testing protractor e2e-testing