@aquality-automation/aquality-tracking-reporter-jasmine
v1.0.11
Published
A Plugin to send results to Aquality Tracking
Downloads
58
Maintainers
Readme
Jasmine Aquality Tracker Plugin
A plugin to send test results to Aquality Tracking
Installing
npm i @aquality-automation/aquality-tracking-reporter-jasmine
Using Aquality Tracker Plugin in Jasmine
// conf.js
const AqualityReporter = require('@aquality-automation/aquality-tracking-reporter-jasmine');
jasmine.getEnv().addReporter(new AqualityReporter({
token: ${your_api_token},
api_url: ${your_api_url},
project_id: ${your_project_id},
testrun_id: ${testrun_id_for_results}
}));
Using Aquality Tracker Plugin in Protractor
// conf.js
exports.config = {
framework: 'jasmine',
onPrepare: function() {
const AqualityReporter = require('@aquality-automation/aquality-tracking-reporter-jasmine');
jasmine.getEnv().addReporter(new AqualityReporter({
token: ${your_api_token},
api_url: ${your_api_url},
project_id: ${your_project_id},
testrun_id: ${testrun_id_for_results}
}));
}
}
Using Aquality Tracker Cli to start and finish testruns
To start test run use:
aqualityReporter start ${your_api_url} ${your_project_id} ${your_api_token} ${suite name} ${environment} ${build_name}
To finish test run use:
aqualityReporter finish ${your_api_url} ${your_project_id} ${your_api_token} ${testrun id}