1

I have set up a Protractor project that uses Allure Reporting. I have managed to get Allure Reporter outputting the HTML file to the allure-report folder, but upon opening the page in the browser it just says "Loading..." on the overview page. When I click on the other tabs, I get a 404 page not found message.

The package.json file contains a scripts section that specifies the test and post-test scripts to run:

  "scripts": {
    "test": "protractor conf.js",
    "posttest": "allure generate allure-results --clean -o allure-report || true"
  },

The problem seems to reside in the line:

allure generate allure-results --clean -o allure-report || true

Can anyone advise what I would need to change in package.json in order to populate my report? Is there something obvious I'm missing?

When I run allure serve allure-results I get the formatted HTML report as expected, but I need to automate the process.

Nita
  • 11
  • 2

1 Answers1

0

You can view the report if you open index.html file in FireFox browser. Probably you have opened this in Chrome browser. The error you are getting because of default Webkit security settings. Please refer to this answer.

jithinkmatthew
  • 718
  • 7
  • 15