Can we repeat Unit test case execution for a configurable number of times?
For example, I have a Unit test script named Test_MyHardware
that contains couple of test cases test_customHardware1
and test_customHardware2
.
Is there a way to repeat the execution of test_customHardware1
200 times and test_customHardware2
500 times with Python's unittest module?
Note: The above case presented is simplified. In practise, we would have 1000s of test cases.