Follow

Continuum for TestNG on Sauce Labs

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

Prerequisites

Installation and Configuration

  1. Download Continuum for TestNG on Sauce Labs from the AMP Toolbox.


  2. Add your Sauce Labs username and access key to the `src/main/resources/continuum.properties` file, editing the `saucelabsUsername` and `saucelabsAccessKey` properties, respectively.  

Running Tests

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. 

Test results will display the list of accessibility errors, along with details to guide remediation efforts. See "Access Continuum Test Results" for more details. 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Level Access Support
www.levelaccess.com | 800.889.9659
© 2005 - 2018 - Level Access All rights reserved.
Privacy | Security | Credits | License