Run Test in Loop

Hi,

I would like to know that can I run a test multiple times in loop by pre-defining the value of loop?

Hi Afsheen,

Would this approach be something you are looking for?

int count = 1;

@Test
public void myTest() {
    do {

        // Your code

        count++;

    } while (count < 10);
}

But we can not edit the code if running in appium studio. I was looking for an approach to be used within Appium Studio.

Conditions such as loops is meant to be done from a code environment. Appium Studio will just give you the studio to develop the scripts.

Yeah got it. Thank you for responding though :slight_smile: