agent-js-cypress
agent-js-cypress copied to clipboard
ReportPortal custom commands not sending logs to RP
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.
I think if you do the following will work module.exports = (on, config) => { registerReportPortalPlugin(on,config); }
instead of module.exports = (on) => registerReportPortalPlugin(on);
@albadam000 Hello! Have you tried the possible solution above?
I have, and I am also seeing the same issue.
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.