Automation Tests with Accessibility Tool using Cypress v9
This document walks you through the step by step guide for executing the automation tests of your website with TestMu AI's Accessibility Tool using Cypress v9 and below.
NOTE: This documentation is applicable for Cypress v9 and previous versions.
Prerequisites
- Your TestMu AI Username and Access key
- Setup your local machine as per your testing framework.
Step-by-Step Guide to Trigger Your Test
Step 1: Setup Your Test Suite
You can use your own project to configure and test it. For demo purposes, we are using the sample repository.
Download or Clone the code sample from the TestMu AI GitHub repository to run your tests.
Configure the desired capabilities based on your test requirements. For example:
loading...
Step 2: Establish User Authentication
Now, you need to export your environment variables LT_USERNAME and LT_ACCESS_KEY that are available in the TestMu AI Profile page.
Run the below mentioned commands in your terminal to setup the CLI and the environment variables.
- Linux / MacOS
- Windows
export LT_USERNAME="undefined"
export LT_ACCESS_KEY="undefined"
set LT_USERNAME="undefined"
set LT_ACCESS_KEY="undefined"