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

 

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

selenium+python:跳过用例 unittest-skip

selenium+python:跳过用例 unittest-skip

 

 

 

 

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

 

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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-10-02
  • 2022-12-23
  • 2021-09-02
  • 2021-08-07
猜你喜欢
  • 2021-09-08
  • 2021-08-01
  • 2022-12-23
  • 2021-10-12
  • 2021-09-22
  • 2021-09-17
相关资源
相似解决方案