-
Notifications
You must be signed in to change notification settings - Fork 21
Setup
- Supports Mac, Windows 7/10 (Professional) and Ubuntu Linux 16.04.
- All others are untested, and while they may work, they are not currently supported.
- All instructions assume that Git is already installed.
- Recommended supported screen resolution is 1920 x 1080 for Windows and Linux, default for display (2880 x 1800 for retina Mac and 1440 x 900 for non-retina Mac)
- Important: when running Iris, make sure that no Firefox instances are open or visible, including launcher/dock icons not present by default, as these will interfere with Iris itself. Also, keep in mind that when Iris is running, it will be commanding all user input, so don't run it while you are actively working on something else.
- Clone the Iris repo.
cd ~
git clone https://github.com/mozilla/iris
- Run the Mac bootstrap script.
cd iris2
./bootstrap/bootstrap.sh
- Restart your Mac in order for certain libraries to be recognized.
- In System Preferences, go to Mission Control and change the keyboard shortcut for "Application Windows" to "-", or none.
- Launch Iris.
cd ~/iris
pipenv install
pipenv shell
iris -k
NOTE: If your test just starts the Firefox instance and then nothing happens, please have a look in Security Preferences > Security & Privacy > Privacy > Accessibility - you might have to allow your terminal application in the list.
Note:
Windows 7 requires Powershell 5 and the latest .NET framework version 4.5. In addition, please make sure you are using the default theme for the operating system, and not a custom theme such as "Aero," as this is not supported.
- Launch the terminal.
- Run the following commands. Note: The script will prompt you to restart the terminal twice.
git clone https://github.com/mozilla/iris
cd iris
bootstrap\bootstrap.sh
- Install project requirements and activate the virtualenv.
pipenv install
pipenv shell
- Run Iris.
iris -k
- Follow instructions below for disabling Keyring.
- Open Settings > Displays > "Scale for Menu and Title bars:" and verify that it is set to 1.
- Launch the terminal and run the following commands.
cd ~
git clone https://github.com/mozilla/iris
cd iris
./bootstrap/bootstrap.sh
Note: This will take around 10 minutes to download, compile, and install dependencies.
- Run the following commands to complete installation and launch Iris.
pipenv install
pipenv shell
iris -k
If you have never used Sikuli, it is highly encouraged to visit their site, download their tools, and experiment, as the concepts that Sikuli uses have greatly inspired Iris and will help in learning.
You can use any IDE that you are comfortable with, but we recommend PyCharm.
Some tests covering the save credentials functionality may prompt to enter Keyring password.
In order to avoid this dialog in test runs. You must switch Keyring password off manually with your user password.
To do this follow:
-
On the Password and Keys panel, right-click on the "Default keyring," and choose "Change Password."
-
Leave new password blank.
From now on, you won't be prompted to unlock the default keyring.
Installation
Running Iris
- Basic workflow
- Useful examples
- Using the Control Center - coming soon
- Runtime argument list - coming soon
Contributing to Iris
- Iris APIs - coming soon
- Creating images
- Code style guide - coming soon
- Getting code into Iris
- Communicating with the team - coming soon