我正在进行应用程序测试,并发现了一个问题。我的应用程序。在Security控制器中具有身份验证(电子邮件、密码)操作,当从登录页面调用时,使用有效的电子邮件和无效的密码将我发送回登录页,其中包含位于flash作用域中的错误消息。
应用程序。测试代码如下:
Response response =
GET("/security/authenticate?email=validUser&password=invalid", true);
String pattern = "invalid password";
assertContentMatch(pattern, response);当运行此代码时,将引发下一个异常:
A java.lang.RuntimeException has been caught,
java.net.MalformedURLException: no protocol: /login进行了一些研究,发现:
。
有人也有同样的问题吗?任何打开的bug寻找信息或添加我的2分钱?
发布于 2012-08-17 14:48:22
在这里,您可以找到问题的描述以及解决问题的代码片段:
https://play.lighthouseapp.com/projects/57987/tickets/1553-functionaltestget-with-redirect-crashes
https://stackoverflow.com/questions/10732500
复制相似问题