Open KimberlingYarihuaman opened 2 weeks ago
Hi @KimberlingYarihuaman 👋 ,
how does you TakeScreenshot function look like in Cypress and when should it fire? I mean, in WebdriverIO, Seleninum etc. you usually have to setup a hook like Before, After, to call the specific Screenshot function. I guess this is very similar what you have to do with Cypress, am I right?
Did you do this? Get us a bit more code to work with. My feeling tells me it's not a issues of the report.
Best regards Sven
Hi @Sven-Seyfert ! Cypress takes screenshots by default when the tests are failed so I assume they'll be attached automatically, so I don´t understand why they aren´t being attached in the report.
Regards.
Like in the cypress docs described, the screenshots will be stored in cypress/screenshots
folder which is maybe not recognised by the reporter 🤔 ?
Do you use cypress run
or cypress open
?
Additionally, Cypress will automatically capture screenshots when a failure happens during cypress run. Screenshots on failure are not automatically taken during cypress open.
My guess is: you have to define the location to the screenshots.
Best regards Sven
Update: Also see this README.md FAQ question and answer which could help you to find the right direction.
Hi @Sven-Seyfert !
I´m running the tests with cypress run
and the folder cypress/screenshots
are being created, but the report keeps without showing the screenshots. Also, I defined the path for the screenshots (in cucumberReport.js) but I got the same result.
Regards
Okay, sad. Without a reproducible example, I cannot further support you. Could you provide a small running cypress project which we could execute and maybe debug?
Yes @Sven-Seyfert let me to do a small example and I will attach in this question. Thanks
Hi @Sven-Seyfert !
I attached a small example where you will be able to reproduce the issue. You should read the README.md file to understand how to run the tests and generate the report. Please, let me know if you need something else.
Thanks in advance
Regards.
Environment:
Config of multiple-cucumber-html-reporter
I´ve configured the report so that to be generated from cucumberJson with multiple-cucumber-html-reporter
Also, I´ve tried using cypress-cucumber-attach-screenshots-to-failed-steps with the report, but I´ve gotten the same.
Describe the bug
The report is not getting attached the screenshots, only shows the error.
Expected behavior
The report should get attached the screenshots.