I\'m trying to use Allure-framework to generate a report for my Selenium WebDriver tests. I use JUnit
framework and allure-maven-plugin with version 1.3.9 of Al
To use allure report in chrome, you have two options:
mvn allure:serve
target. It will generate the report and open a tab in Chrome (if default browser)mvn allure:report
target and serve the site your self, using any http server. if you have node you can use http-server
for example npm install http-server -g
and then http-server target/site/allure-maven-plugin
)DO NOT use --allow-file-access-from-files
flag, is it DANDEGEROUS
In Addition to the above answer using "--ignore-certifcate-errors" with chromeOptions might be helpfull.
DesiredCapabilities capabilities;
capabilities = DesiredCapabilities.chrome();
ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.addArguments("--ignore-certifcate-errors");
chromeOptions.addArguments("test-type");
capabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);
WebDriver driver = new ChromeDriver(capabilities);
This problem is related to default Webkit security settings which forbid doing Ajax requests on the local filesystem. You have at least two possible solutions:
$ allure report open