Using axe DevTools Java Cucumber with Gradle, you can integrate axe DevTools into your existing testing environment. This example project demonstrates how axe DevTools Java JUnit with Gradle is used to detect accessibility issues and generates report in JSON format.
Java 8 or higher Gradle 7.5.1 or higher
Follow these steps to clone and navigate to the directory:
- Clone this repo from GitHub.
- Open the project in your favourite Java IDE.
- Navigate from the root of the repo to this example with the following command:
cd Java/gradle-cucumberInstall the dependencies including axe DevTools Cucumber for the project.
NOTE: You need a valid license to use our APIs. For more information, see Deque’s Agora page.
Open build.gradle and enter credentials, $mavenUser as email and $mavenPassword as API Key.
After configuring the access to Deque's private registry, you can install the dependencies for this project.
The following command installs all the required dependencies and runs this example project.
gradle buildDependentsThe /src/test/java/gradle/cucumber directory contains the file ExampleTest.java that analyzes the page http://abcdcomputech.dequecloud.com/ for accessibility issues.
The following comand runs the test again.
gradle clean testThe tests generate JSON results in the target/axe-report/ directory.