对未来唯一项目业务规则进行自动测试
我目前有一个具有验证业务规则的业务对象,它只能为将来、明天之后创建,并且我无法为今天创建新项目。
我有一个流程,它通过一些步骤运行非未来的业务对象。
因为我必须今天进行设置,明天进行测试,当失败时,我只能明天创建一个新对象并在第二天进行测试。
在任何测试框架中是否有任何简单的方法可以自动化此过程?我认为我们的测试人员正在使用 Visual Studio 2010 测试管理器。你们如何处理这样的情况?
干杯
I currently have a business object with a validation business rule, which is it can only be created for the future, tomorrow onwards, and I cannot create new items for today.
I have a process, which runs the non-future business objects through some steps..
Because I have to set things up today, and test tomorrow, and when it fails, I can only create a new object tomorrow and test the following day.
Are there any easy ways to automate this process in any testing frameworks? I think our testers are using the visual studio 2010 test manager. How do you guys manage situations like this?
Cheers
最简单的方法是抽象当前时间的概念......
然后在测试时间敏感的事物时模拟该服务。
The easiest way is to abstract the concept of the current time...
...then mock out that service when testing time sensitive things.