An open API service indexing awesome lists of open source software.

https://github.com/samska/robot-applitools-tests

Visual Tests with Robot Framework using Applitools
https://github.com/samska/robot-applitools-tests

robotframework

Last synced: about 1 month ago
JSON representation

Visual Tests with Robot Framework using Applitools

Awesome Lists containing this project

README

          

# Robot Framework Visual Tests using Applitools

Sample project on how to setup robot framework for visual tests using Applitools (with EyesLibrary).

```
robot-applitools-tests/
├── .github/
│ ├── workflows/
│ ├── robot.yml # Configuration for the tests on CI
├── config/
│ ├── requirements.txt # Required dependencies for the tests
├── resources/ # Resources used in the project like keywords and variables
│ ├── common_keywords.robot # Common keywords used for the visual tests
│ ├── common_settings.robot # Common settings used for the visual tests
│ ├── common_variables.robot # Common variables used for the visual tests
├── reports/ # Test results generated by Robot
│ ├── log.html
│ ├── output.xml
│ ├── report.html
├── tests/ # Project tests separated by test type folder
│ ├── applitools.yaml # Configuration for Applitools tests
│ ├── visual_test_1.robot # Visual test file
│ ├── visual_test_2.robot # Visual test file
│ ├── visual_test_3.robot # Visual test file
├── .gitignore # Untracked folder and files
├── README.md # README with project overview and instructions
```

## Getting started

These instructions will get you a copy of the project and running on your local environment.

### Prerequisites

- Python 3
- ChromeDriver (or another webdriver of your choice)

### Installing

1. Clone the repository
2. Update the api_key in the applitools.yaml file
3. Install the dependencies:

```sh
pip install -r requirements.txt
```

### Running the Tests

To run the tests, use the following command:

```sh
pabot --outputdir reports tests
```

This will run all the visual tests in parallel mode, this was necessary for the Applitools since if you run using a unique suite (using the robot default command), all the visual tests will be grouped in a unique batch.

### Test Reports

The test results will be generated in the reports directory. Open the report.html file to view the HTML report.