About Continuum for TestNG on Sauce Labs
Continuum for Karma/Jasmine is an accessibility testing tool that allows developers to conduct automated accessibility testing using their existing Sauce Labs configuration.
Sauce Labs is a cloud-based, web and mobile application automated testing platform. It currently provides the world’s largest continuous testing cloud for web and mobile applications. TestNG is a testing framework for the Java language. Continuum for TestNG on Sauce Labs provides developers with an easy and painless way to address accessibility concerns during the development process.
Continuum for TestNG on Sauce Labs includes:
- Access Engine, specifically the automatic tests included with this accessibility testing engine
- A sample project that allows users to understand how to run automated accessibility testing on a web page or particular component within a web application
Getting Started with Continuum for TestNG on Sauce Labs
Java 11* (https://java.com/en/download/)
Sauce Labs Account (https://saucelabs.com/beta/dashboard/builds)
Note: *All versions of Java prior to 11 are end of life. So Java 11 is the minimum supported version for Access Continuum.
Installation and Configuration
- Download Continuum for TestNG on Sauce Labs from the AMP Toolbox.
Add your Sauce Labs username and access key to the `src/main/resources/continuum.properties` file, editing the `saucelabsUsername` and `saucelabsAccessKey` properties, respectively.
Go to 'src/test/java/com/NodeTest.java' and 'src/test/java/com/PageTest.java' and replace "www.levelaccess.com" in both files (NodeTest.java and PageTest.java) with the URL of your application.
If you would like to test certain element in your web page, make sure to change CSS selector from "#wrapper" to any CSS selector you would like to test in 'src/test/java/com/NodeTest.java'
Use 'mvn test' to run the tests.
You can see the testing results in your IDE, and you should also be able to view the details in Sauce Labs' Dashboard.
Email Level Access support at email@example.com for any question, or get support from the community and the Level Access development team by posting questions on Stack Overflow with the following tags: #acccessibility, #webaccessibility and #wai-aria