I am trying to run the pytest in a loop on parameterized data
@pytest.mark.repeat(2)
@pytest.mark.parametrize("username, password",[('abc@abc.com','aaa'),
('def@def.com','ddd'),('efg@efg.com','eee')])
if i run the pytest above, the execution sequence is
( 'abc@abc.com','aaa') executed 2 times , then ('def@def.com','ddd') is executed 2 times and then ('efg@efg.com','eee') is executed.
I am trying to implement the sequence where each of the parameterized values are run for every repeat. With @pytest.mark.repeat(2), i am trying to get the below output:
for 1st repeat: ('abc@abc.com','aaa'),('def@def.com','ddd'),('efg@efg.com','eee')
for 2nd repeat: ('abc@abc.com','aaa'),('def@def.com','ddd'),('efg@efg.com','eee')
Any pointers will be appreciated.