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数目

posted @ 2020-05-07 16:32  yimu-yimu  阅读(284)  评论(0编辑  收藏  举报