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

Is it possible to upload the successful screenshots & videos for test evidence to ReportPortal using cypress?

Open govindd06 opened this issue 2 years ago • 3 comments

In Cypress, it is uploading the screenshot for the failure tests to Reportportal but it is not sending the screenshot for successful tests steps screenshots. Is it possible to configure to capture both success and failure screenshots in the ReportPortal. And also how to upload the videos of only the failure tests to ReportPortal.

govindd06 avatar Feb 15 '23 19:02 govindd06

@govindd06 Not aware Cypress has an option to create screenshots for passed tests. What you could do however is to add a cy.screenshot() in afterEach(). To make this work you might need to checkout #146.

Videos is not yet supported, you might try #150.

thomaswinkler avatar Feb 18 '23 19:02 thomaswinkler

@govindd06 you can simply use cy.screenshot() to take the screenshot at any point of time during the test execution and, I guess, next send it to RP with cy.log(message, screenshotInBase64)

gustawx avatar Feb 24 '23 07:02 gustawx

do we have a solution to videos to report portal in cypress.

bmanubolu avatar Apr 01 '24 17:04 bmanubolu