Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道当网络不可用时忽略选定的测试。像条件忽略属性之类的东西?
我不知道在运行时忽略某些测试。但是,你可以想到两件事。第一个是在测试开始时,您可以检查网络是否可用,如果不返回,则将测试标记为通过。或者,您可以在 Assert Inconclusive 中检查网络,这将在结果中标记测试不确定。