BO
Size: a a a
BO
OV
OV
OV
AP
AP
AP
OV
SG
after: function(result, capabilities, specs) {
const videoLink = 'http://' + config.hostname + ':' + config.port + '/video/' + browser.sessionId;
if (result === 0) {
info('Suite passed - deleting video - ' + videoLink);
request.delete(videoLink);
} else {
error('Suite failed - see video - ' + videoLink);
}
},
MB
SG
O
AV
AZ
VG
VG
B
B
RS
after: function(result, capabilities, specs) {
const videoLink = 'http://' + config.hostname + ':' + config.port + '/video/' + browser.sessionId;
if (result === 0) {
info('Suite passed - deleting video - ' + videoLink);
request.delete(videoLink);
} else {
error('Suite failed - see video - ' + videoLink);
}
},
RS
function removeVideo(sessionId) { let sleep = 500, maxTime = sleep*10; let timer = setInterval(function () { request({method: 'DELETE', uri: 'http://localhost:4444/video/'+sessionId+'.mp4'}, function (error, response, body) { if(response.statusCode == 200) { clearInterval(timer); return true; } else if(0 >= maxTime) { clearInterval(timer); throw new Error('Ожидание в '+counter+'мс превышено.'); } else maxTime-=sleep; }); }, sleep);};