开发者

How to configure MSTest to to try every test again if fail

I want to solve a problem with a random failures on Visual Studio 2010 Coded UI tests. Is it possible to configure mstest to try each failed test again before f开发者_如何学Cailing it in the results? Thank you.


You could make the test(s) in question data-driven. For example, use an XML file with a bunch of blank test rows so that the test runs multiple times. It will report the success/failure of each test-row individually. You don't actually have to make the test(s) extract any data from the XML file.

http://callumhibbert.blogspot.com/2009/07/data-driven-tests-with-mstest.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜