await service.open(null);
await counters.open(null);

var countExec = 2;

for (let i = 0; i < countExec; i++)
    mycomponent.myMethod();