selenium+python:跳过用例 unittest-skip

@unittest.skip(reason):强制跳过,不需要判断条件。reason是跳过原因的描述必须填写

@unittest.skipIf(condition, reason):condition为True时跳过用例

 @unittest.skipUnless(condition, reason):当condition为False时跳过用例

 @unittest.expectedFailure:如果test失败了,这个test不计入失败的case数目

原文地址:https://www.cnblogs.com/may18/p/12843889.html