Skip to content

jeremy-morgan-deque/workshop-python-robot-devtools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

axe DevTools Python Robot API Example

Using axe DevTools Python Robot, you can integrate axe DevTools into your existing testing environment. This example project demonstrates how axe DevTools Python Robot is used to detect accessibility issues and generates reports in CSV, HTML, JSON, and XML formats.

Prerequisites

Python 3 (does not support Python 2) along with the virtual environment (venv or pyenv).

Clone Project

Follow these steps to clone and navigate to the directory:

  1. Clone this repo from GitHub.
  2. Open the project in your favourite python IDE.
  3. Navigate from the root of the repo to this example with the following command:
cd Python/robot

Binary Reporter

Download the respective Binary reporter for your operating system and place it in the resources directory.

Install Dependencies

Install the dependencies including axe DevTools API, DevTools Robot, and DevTools Selenium for the project.

NOTE: You need a valid license to use our APIs. For more information, see Install from Deque’s Agora page. 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 to run this example project.

pip install -r requirements.txt

Run Tests

The tests directory contains the files example_test.robot, resource.robot, and reporting.py that analyze the page https://broken-workshop.dequelabs.com/ for accessibility issues.

The following command runs the files in the tests directory.

robot .

Test Results

The tests generate results in the a11y-results directory if you have installed the Binary reporter. Otherwise, they generate only JSON results.

The executive-report.html file is an executive summary report aggregating results from all scans into one page.

Every time you run robot ., it replaces all previously saved results with the latest results in the a11y-results directory, so if you want to retain previous test results, you should rename or save them in a different directory.

If you want to modify this project and publish your results in a folder other than ./ally-results, you should update the output directory in the reporting.py file.

Additional Information

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors