agent-js-cypress icon indicating copy to clipboard operation
agent-js-cypress copied to clipboard

ReportPortal custom commands not sending logs to RP

Open albadam000 opened this issue 4 years ago • 4 comments

The ReportPortal custom commands are not sending logs to RP (tried all custom commands, the logs are not showing up in reportportal: cy.log(), cy.trace(), cy.debug()... )

The test agent is configured correctly, launches, test suite and test steps are created in RP, also failing test logs and stacktraces are attached, but using the custom commands do not yield any additional logs. cy.screenshot() is working fine as well.

Custom commands are added to the support/commands.js: require('agent-js-cypress/lib/commands/reportPortalCommands');

plugins/index.js const registerReportPortalPlugin = require('agent-js-cypress/lib/plugin'); module.exports = (on) => registerReportPortalPlugin(on);

Test project shared with the developer directly to help reproduce the issue.

albadam000 avatar May 13 '20 06:05 albadam000

I think if you do the following will work module.exports = (on, config) => { registerReportPortalPlugin(on,config); }

instead of module.exports = (on) => registerReportPortalPlugin(on);

iivaan avatar Mar 31 '21 22:03 iivaan

@albadam000 Hello! Have you tried the possible solution above?

AmsterGet avatar Apr 05 '21 22:04 AmsterGet

I have, and I am also seeing the same issue.

rdyercrx avatar Apr 15 '22 17:04 rdyercrx

Hello @rdyercrx, @albadam000! Is this issue still relevant for you using the latest version of agent-js-cypress? Check out the demonstration repo for an example usage. Feel free to ask questions if any.

AmsterGet avatar Jul 26 '24 15:07 AmsterGet