multipleCucumberHTMLreporter

FAQ

Frequently asked questions and troubleshooting common issues in Multiple Cucumber HTML Reporter.

Here are common issues and solutions while setting up or using the reporter.

Report Issues

Why are my reports being overwritten?

If only one report is shown, the JSON file names generated by Cucumber might not be unique enough.

Tip

Always include a unique identifier like the feature name, browser, and a timestamp in your JSON filename:

`${featureName}.${browserName}.${new Date().getTime()}.json`

Why does metadata show as "not known" or icons are missing?

This usually happens because:

  1. Metadata wasn't correctly added to the Cucumber JSON results.
  2. The metadata.browser.name or metadata.platform.name values were not recognized.

Verify that your values match the supported browser and platform names in our Metadata Guide.

Screenshot & Attachment Issues

How can I attach screenshots?

You can attach screenshots during test execution as Base64 strings using the Cucumber world.attach method within your hooks or steps.

Does it support pretty JSON?

Yes, just pass the JSON string and set the MIME type to application/json when calling attach.

Other Questions

Can I run this in Parallel?

Yes, since the report merges all JSON files found in the jsonDir, it's perfect for parallel execution support.

Is it compatible with Protractor?

If you are using Protractor, we recommend using the dedicated protractor-multiple-cucumber-html-reporter-plugin for a more seamless experience.

Last updated on

On this page