flash范围的问题 - play框架 [英] Problem with flash scope - play framework

查看:246
本文介绍了flash范围的问题 - play框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是关于将变量放入/取出播放范围。



这不是它不工作,但它有时会和其他次数不,这是真的奇怪。例如,我第一次运行一个selenium测试检查这个问题,抛出一个异常,param不能在闪存中找到。第二,第三和第四次一切工作正常,这是非常奇怪。



我也尝试用session.put和session.get解决它,但这不会'/ b>

你们有什么想法我做错了什么?



请考虑

解决方案

答案是,Selenium测试器(更好地说:测试模式, 玩测试)的Play!每隔两秒清除闪光一次,等等。这听起来很奇怪,但我测试了它的详细。当我运行测试真的很快,事情工作。但是当它运行缓慢,闪存范围在某些时候被清除,它的程序失败。


My problem is about putting and getting variables into/from the play scope.

It's not that it doesn't work at all, but it sometimes does and other times it doesn't, which is really odd. For example, the first time I run a selenium test which checks this problem, a exception is thrown, that the param can't be found in flash. The second, third, and fourth time everything works fine, which is very strange.

I also tried to solve it with session.put and session.get, but this doesn't work either, it has the same effect as flash.

Do you guys have any idea what I am doing wrong?

Kind regards

解决方案

The answer is, that the Selenium Tester (better said: the Test mode, startet with "play test") of Play! does clear the flash every two seconds, or so. It sounds very odd, but I tested it in detail. When I ran a test really quick, the thing worked. But while running it slowly, the flash scope got cleared at some time and it the programm failed.

这篇关于flash范围的问题 - play框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆