1package test.retryAnalyzer;
2
3import org.testng.annotations.Factory;
4
5public class MyFactory {
6    @Factory
7    public Object[] createTests() {
8        int num = 10;
9        Object[] result = new Object[num];
10        for (int i = 0; i < num; i++) {
11            FactoryTest obj = new FactoryTest("Test" + i);
12            result[i] = obj;
13        }
14        return result;
15    }
16}
17