I have a set of tests that I have written in Cucumber and Java. What I am trying to do is write some code where once all tests are done running, to start over again and to do that x number of times. I tried using a while loop but that didn't work. I added the following in Java cucumber code at the end but it didn't go back and run it again.
//Repeat test
public static class Repeat {
public static void main(String[] args) {
for(int i = 0; i < 10; i++) {
System.out.println("Counter: " + i);
}
}
}