- 04 Mar 2024
- 1 Minute to read
- Print
- DarkLight
Applitools
- Updated on 04 Mar 2024
- 1 Minute to read
- Print
- DarkLight
Overview
Applitools introduces advanced test automation driven by AI-enhanced computer vision technology called Visual AI. This technology empowers Developers, Test Automation Engineers, and QA experts to expedite the production of top-notch web and mobile applications with heightened efficiency.
Applitools seamlessly integrates with more than 60 contemporary test automation frameworks like Selenium, WebdriverIO, and Cypress. This integration optimizes efficiency and curtails the upkeep demands of automated testing.
Additionally, Applitools revolutionizes testing practices by enabling real-time visual validation of applications across various platforms and devices. Its AI-backed technology detects even the slightest visual discrepancies, enhancing quality assurance and expediting the development lifecycle.
Prerequisites
- Applitools Account - An Applitools account is essential for running visual tests. If you don't have an account, sign up at Applitools.
- Node.js - Ensure that Node.js is installed on your system. We recommend using Node.js version 16 or above for optimal compatibility.
- NPM (Node Package Manager)- NPM is needed to manage project dependencies. If you don't have it, install it alongside Node.js.
- Project Setup - Clone or download the project repository to your local machine.
- Install Dependencies - Open your terminal and navigate to the project directory. Install the necessary project dependencies by executing the following command:
npm install
Configuration
- Update Email - In the config/config.js file, locate the line containing pCloudy_Username and replace it with your email address.
- Update API Key - Similarly, find the lines with pCloudy_ApiKey and apiKey. Replace Enter-API-Key with your actual pCloudy API key. Also, replace Enter-Applitools-API-KEY with your Applitools API key. If you're unsure about how to obtain the Applitools API key, refer to the Applitools API Key Guide.
- Update App and Test Name - Similarly you can update your appName & testName
Execution
To run the visual testing script, follow these steps:
- Open your terminal.
- Navigate to the project directory using the cd command.
- Execute the following command to initiate the test:
npm run test
Output
The test results will be accessible via your Applitools account dashboard. Log in to your Applitools account to view the visual testing output and analyze any discrepancies.
With these steps completed, you're all set to perform Applitools Visual Testing and ensure the visual integrity of your application across different devices and screen sizes.
The complete sample and documentation are available in the pCloudy GitHub Repository : Github