Executing multiple test sequentially with different parameters testng

后端 未结 3 1037
有刺的猬
有刺的猬 2021-01-07 08:42

I was trying to run multiple test with different parameters sequentially using data providers, basically the scenario is suppose there are 5 test completing a test flow and

3条回答
  •  再見小時候
    2021-01-07 09:28

    You can use nose-ittr, its a nose extension for supporting parametrized testing.

    example:

    @ittr(number=[1, 2, 3, 4])  
    def test_even(self):
        assert_equal(self.number % 2, 0)
    

提交回复
热议问题