agent-js-jasmine
Agent for integration Jasmine + Protractor with ReportPortal.
ReportPortal
ReportPortal on GitHub
How to use
- Install the agent in your project:
npm i agent-js-jasmine --save-dev
- Modify the protractor configuration file as follows:
...
var AgentJasmine = require('agent-js-jasmine');
var reportPortalListener = new AgentJasmine({
token: "00000000-0000-0000-0000-000000000000",
endpoint: "http://localhost",
launch: "LAUNCH NAME",
project: "PROJECT NAME",
mode: "DEFAULT",
tags: ["your", "tags"],
description: "DESCRIPTION"
});
...
module.exports.config = {
...
plugins: [{
path:'node_modules/agent-js-jasmine/lock.js',
inline: {
postTest : function(passed, testInfo) {
return reportPortalListener.completeInReportPortal();
}
}
}]
...
onPrepare: function(){
...
global.defaultExplicitWait = 5000;
jasmine.getEnv().addReporter(reportPortalListener);
}
...
}
token - UUID in your ReportPortal profile page.
endpoint - server address reportPortal.
-
Open ReportPortal, your project and launch. You should see report about tests results.