The hats-ci installer installs packages needed to run browsers automated functional test on Windows. Simplifies the steps to setup test environment in Windows.
It consists of a series of PowerShell scripts which downloads and installs relevant dependencies and packages. A virtual environment will be set up and configured in your local machine as well which will be ready for Robot Framework testing.
We believe that agile quality practices accelerate the delivery of quality applications. To deal with a growing test backlog, test automation is a more scalable and cost-effective approach.
As a group of passionate quality engineers, we want to lower the barrier of entry to web app test automation so that everyone can contribute to software quality.
hats has been tested on the following platforms:
- Active support for Windows 10 1709, 1803, 1809, 1903 (64-bit)
- Active support for macOS Mojave and Catalina
- Linux CentOS, Fedora, Ubuntu instructions are available at https://github.com/younglim/hats-linux .
- Microsoft Internet Explorer 11
- Microsoft Edge 44
- Google Chrome 54 (or newer)
- Mozilla Firefox 54 (or newer)
- Apple Safari 10 and later
Steps recommended for quickly getting started on automated testing.
- Download the latest release
- Run
hats_for_Windows_xx.exe
. - Refer to Release Notes for detailed information.
Steps recommended for experienced developers or those who want to contribute to hats-ci
.
- Clone this repository.
- Navigate to
virtualenv
directory - Run
00_Install_and_Run_Robot.bat
to download and install the packages - a demo Robot test will run at the end as well to verify that the installation has been successful - Navigate to
virtualenv/shell
directory - Run
hats_shell.cmd
and you are ready to run any pybot commands and start testing with your Robot scripts! - You can also run
hats_shell
from Command Prompt or Powershell. - For uninstallation, from Command Prompt or Powershell, run
hats_shell uninstall
.
- Install Xcode and Xcode Developer tools with your own Apple Credentials in the App Store. (Skip this step if Xcode was already installed)
- Open Xcode for the first time and Click Agree. (Skip this step if Xcode was previously used)
- Make sure Google Chrome and Firefox have been installed prior (and at least opened once to overcome Apple's security popup)
- In Terminal, run:
bash <(curl -s https://raw.githubusercontent.com/younglim/hats-ci/master/assets/mac-installer.sh)
- To Allow safaridriver to run successfully, enable: 1) Enable Develop menu on Safari > Preferences.. > Advanced 2) Go to the newly added Develop menu, Click "Allow Remote Automation"
- Restart Terminal for
hats_shell
to be started in Terminal automatically.
** Note, Amazon Corretto 8 Java 1.8 is used.
You can find detail documentation here.
- Make sure all $ANDROID environment variables are set.
- To programatically boot the Android Virtual Device(AVD), the commmand
emulator -avd testAVD
must be run from the tools folder in the android-sdk directory.
We welcome your involvement, be it fixing bugs or implementing new features that you find relevant to this project.
To contribute, you may follow the steps below:
- Fork the repo
- Create a new branch from
development
to work on your contribution - Create a pull request back here!