Sample tests for https://www.saucedemo.com/ website.
- Java JDK >= 9
- Maven
- Chrome browser
mvn test allure:report
Test report will be created in target/site/allure-report/index.html
However, due to security restrictions browsers
don't allow AJAX requests on the local filesystem and hence the report won't be correctly displayed unless it's loaded
from an HTTP server. You can use mvn test allure:serve
instead.
By default, tests are executed with Chrome. It is possible to specify different browser by passing -Dsel.jup.default.browser=BROWSER_NAME
to the above command.
It was tested with Firefox