Conditional skipping of TestNG tests

后端 未结 5 1203
猫巷女王i
猫巷女王i 2021-02-09 07:21

I don\'t have much experience with TestNG annotations, however I am trying to build a test suite using TestNG framework and POM design pattern for a retail website. I am plannin

5条回答
  •  一个人的身影
    2021-02-09 07:59

    Please add the below line of code in the beginning of the test which will skip your test case

    throw new SkipException("Skipping the test case");
    

提交回复
热议问题