Comparing Screenshots in Python with Applitools
Prerequisites
A free Applitools account and Applitools API KEY
Tip: Unsure how to find your API key?Read Retrieving your API key to find your API key.
Note: Installing git
is optionalInstalling git is used to clone the demo project from the Github repository. Instead of installing
git
, you can simply download the Zip file from the repository. Further, if you are Mac, you already havegit
.
Running the Example Project
- Clone or download the repository and navigate to that folder
git clone https://github.com/applitools/tutorial-images-python.git
cd tutorial-images-python
Note: you can alternatively download the project as a Zip file and extract it
- Install the dependencies
pip install -r requirements.txt
- Run the example test
APPLITOOLS_API_KEY="[Your API Key]" python -m pytest tutorial.py
Adding Applitools Eyes to an Existing Project
Install Applitools Eyes dependencies:
pip install eyes-images
Sample test
Having Trouble?
Don't suffer in silence! Let us help you. Please reach out to us to get your project working.
Taking the next steps with Applitools
Congratulations on completing this quickstart! There's still so much to learn about visual testing with Applitools, but you're off to a great start.
Resources for next steps:
- 🤖 Learning how visual testing works
- ↔️ Setting match levels for visual checkpoints
- 💥 Troubleshooting common issues
- 🐞 Reporting bugs
- 🗺 Detailed overview of visual testing with Applitools