Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
retryCount = ++argv.retry;
}
try {
console.log('Retry number: ', retryCount);
await uploadOutput(FOLDER, retryCount);
console.log('Screenshots saved successfully.');
} catch (e) {
console.log('Error happened while trying to upload screenshots and test reports: ', e);
}
} else {
console.log(`Status code is ${statusCode}, no need to save screenshots.`);
}
if (process.env.CI) {
return retry.afterLaunch(4);
}
}
alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
try {
await uploadScreenshot(alfrescoJsApi, retryCount);
} catch (error) {
console.error('Error saving screenshot', error);
}
try {
await saveReport(alfrescoJsApi, retryCount);
} catch (error) {
console.error('Error saving Report', error);
}
}
return retry.afterLaunch(4);
}