An easy to maintenance automation base for web based end-to-end tests.
This base is using py.test framework, for an easy xml report (that later can be used by any CI). For any other purpose it's possible to just run as a regular Unittest.
The env is setup by default to work on a headless browser in the same instance, to change this for mobilefarm or any other selenium-hub based env please see the last section in this README.
I've attached a demo test for a search of the term "Hummus" in DuckDuckGo. (guess it's easy and yummy enough as an example)
- Clone the repo to an ubuntu based aws-ec2 instance.
- Install XVFB: sudo apt-get install xvfb (for headless testing)
- Download and install Google Chrome:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
- Run init.sh for initialize dependencies:
chomod +x init.sh
./init.sh
- Edit utils/base.py.
- See func 'create_driver'.
- Rewrite command_executor for remote webdriver.
Gilad Maoz - gilad@maoz.info