How to use the protractor-retry.retry.afterLaunch function in protractor-retry

To help you get started, we’ve selected a few protractor-retry examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Activiti / activiti-modeling-app / e2e / config / hooks / after-launch.js View on Github external
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);
    }
}
github Alfresco / alfresco-ng2-components / protractor.conf.ts View on Github external
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);
    }

protractor-retry

module for protractor to automatically re-run failed tests with specific number of attempts

MIT
Latest version published 4 years ago

Package Health Score

45 / 100
Full package analysis