为什么我的功能测试获得元标记 http-equiv='refresh'然后退出?
当我运行一个简单的功能测试来获取(例如)用户/登录页面时,我得到以下信息:
<html><head><meta http-equiv="refresh" content="0;url=https://localhost/index.php/users/signIn"/></head></html>
然后功能测试就停止了。它也会发生在其他功能测试中,但并非在每个请求中都会发生。其他测试将运行良好,然后当它到达测试中的某个请求时,它将获得该响应(在内容属性中包含请求的 URL),然后停止。
关于为什么会发生这种情况有什么想法吗?
这些功能测试曾经有效,但我刚刚从另一家开发公司拿回这个项目,我不知道从哪里开始寻找更改。当然,我可以使用版本控制对文件进行比较,但我不知道从哪里开始。感谢您提供任何线索!
When I run a simple functional test to get (for example) the users/signIn page, I'm getting this:
<html><head><meta http-equiv="refresh" content="0;url=https://localhost/index.php/users/signIn"/></head></html>
and then the functional test just stops. It happens in other functional tests too, but not on every request. Other tests will run fine, then when it gets to a certain request in the test, it will get that response (with the requested URL in the content attribute), and stop.
Any ideas on why this might be happening?
These functional tests used to work, but I just got this project back from another development company and I don't have an idea of where to start looking for the changes. Of course I can do diffs on the files with the version control, but I don't know where to start. Thanks for any leads!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
啊,发现比我想象的要快。
SSL 过滤器已打开,需要在测试环境中禁用。他们已从 app.yml 中删除了测试环境。
Argh, found it quicker than I thought.
The SSL filter was turned on, and needs to be disabled for the test environment. They had removed the test environment from app.yml.