什么是替代在MSTest的[设置]和[TearDown中]
问题描述:
当我使用MSTest的框架,复制硒IDE对我产生code,MSTest的不承认TearDown中和设置。什么是可以替代的?
When I use MSTest FrameWork, and copy the code that Selenium IDE generated for me, MSTest doesn't recognize TearDown and Setup. What is the alternative to this?
答
您会使用 [TestCleanup]
和 [TestInitialize]
分别。