Download the Java Demo Project
Download and run a complete sample Java project that shows how to use axe DevTools for Web
These demos serve to familiarize users with axe DevTools for Java, and produce results without needing an existing Java web project to integrate with. For information on how to install axe DevTools into an existing project, read the guide on installing from a bundle, from your own artifact repository, or from Deque's Agora.
Prerequisites
These projects require a Java Development environment, including a JDK, and Maven or Gradle. They also require a Selenium Webdriver of your choice.
Link to Download Project Zip
Use
- Download the zipped project that matches your developing and testing environment.
- Move the project to the desired location in your file system and unzip.
- Using your command shell, navigate to the location of the project, then within the project to the app directory.
- Run the command mvn test for Maven examples and gradle test for Gradle examples.
Once the tests have finished running, the results are compiled into an HTML report. They will be located in the $project-root/target/attest-reports directory. These reports allow you to easily consume the results of the accessibility scans.
If desired, you can configure the project to scan any web addressable page by changing the test case URLs in the test file(s) within $project-root/src/test/*.java and re-running the tests.
Configuration
Initially, one or more of the components within this project may be incompatible with your environment. You may need to modify the compiler version or testing framework version. These can be modified within the pom.xml or build.gradle files. Additionally, these projects are configured to use Selenium ChromeDriver. If you use a different browser for automated testing, you can modify the browser driver configuration within the test files located at $project-root/src/test/*.java.
If you're still having trouble, contact your Deque representative directly, ask us via our support desk, or send us an email. We'll be happy to help you out.