reportportal / agent-js-cypress

Agent to integrate Cypress with ReportPortal.
https://www.npmjs.com/package/@reportportal/agent-js-cypress
Apache License 2.0
39 stars 40 forks source link

ReportPortal custom commands not sending logs to RP #38

Open albadam000 opened 4 years ago

albadam000 commented 4 years ago

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.

iivaan commented 3 years ago

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

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

AmsterGet commented 3 years ago

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

rdyercrx commented 2 years ago

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

AmsterGet commented 1 month ago

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.