Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screenshots are missing in the donut report #19

Open
nithingg opened this issue May 29, 2019 · 9 comments
Open

Screenshots are missing in the donut report #19

nithingg opened this issue May 29, 2019 · 9 comments

Comments

@nithingg
Copy link

nithingg commented May 29, 2019

After upgrading to the latest version (1.2.2), screenshots are missing in the report html. Prior to the update, screenshots were getting attached to the failed scenarios.

Donut Configuration

image

Cucumber Dependency

image

The failed screenshots are available in the cucumber report folder. However, donut is failing to attach it to the report.

Console Log

[INFO] --- donut-maven-plugin:1.2.2:generate (reporting) @ XXX_Automation ---
[INFO] Generating reports...
[WARNING] Could not lookup path List(projectMetadata, projectVersion) in List(Identifier(List(projectMetadata, projectVersion)))
[INFO] Donuts created at: C:\XXX_Automation\target\donut/donut-report.html

@jnernest
Copy link

Same issues persist for me too. JSON contains image embedded whereas in Donut the image is missing

@jnernest
Copy link

screenshots are embedded under after tag in JSON Object earlier it used to be under result, I think we need to code as if to read after and before tag in JSON Objects

@jnernest
Copy link

@after and @before are now available on JSON need to parsed.

@jnernest
Copy link

@chdask @davebassan can anyone work on this as we are not able to see screenshots on the reports, can you please see to parse the JSON with after and show on report

@jnernest
Copy link

can anyone pick this up...becoz screenshots are missing causes major issue.
@davebassan @temyers @amitsha @mamalisk @Hamo69

@ravikalaa-krishnan
Copy link

Thanks jnernest for the fix. We've found workaround is to lower the cucumber-junit version to info.cukes (from io.cucumber) , tends to attach the screenshots in the donut reports.

@jnernest
Copy link

jnernest commented Jan 27, 2020

@ravikalaa-krishnan Yes we were using info.cukes earlier and it was working fine now after upgrade to io.cucumber we had issues. I have made changes to code to show screenshot after upgrading to io.cucumber.

i have the jar at https://github.com/jnernest/donut-screenshot-for-io.cucumber

Try and let me know is there any issues.

@ravikalaa-krishnan
Copy link

@jnernest Thanks for the jar. I ll give it a try. :-)

@sspriya4789
Copy link

@jnernest I am getting error in opening zip file error when i add it via dependency and tried

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants