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:
- Windows 7, 8.1, 10 (64-bit)
- Mac OS X El-Capitan, macOS Sierra, High Sierra
- Microsoft Internet Explorer 11
- 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
.
- In Terminal, run:
bash <(curl -s https://raw.githubusercontent.com/younglim/hats-ci/master/assets/mac-installer.sh)
A quick way to create a test script is to use Robotcorder and edit the script from Robotcorder.
- Open a command prompt. Run
hats_shell
. - Run
robotcorder
for instructions setting up the Chrome extension.
You can either use
- Eclipse IDE with RED plugin. Type
red
in hats_shell to begin. - Pycharm IDE with IntelliBot plugin
- Notepad++
- Open a command prompt. Run
hats_shell
. - Run the sample test script
cd "C:\Program Files\hats"
pybot testpage\test.robot
- 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!