Preparing data for a SpecFlow scenario [closed]

戏子无情 提交于 2019-12-06 16:04:39

I would go with option 2 - you are testing some use case and you should not involve use cases tested by another tests. Test consists of some code driving the test and data used to perform the test. So if you need special data for the test you should have them prepared upfront instead of creating them by application logic.

The other thing you could do is have a framework that inserts that data into the database. This way it can be reused in other scenarios and would be quicker than restoring a database every scenario

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!