for (var i=0 ; i < 10 ; i++) { if (qie.notInTestWindow() && qie.isChannelStopped(true)) { throw 'Aborting because channel is stopped!'; } qie.info('instance ('+i+')'); qie.pause(2000); }