To run inside virtual machine
- Download this repository - git clone https://github.com/melcma/webdriver-testrail.git
- Install Ansible https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html
- Install VirtualBox https://www.virtualbox.org/wiki/Downloads
- Install Vagrant https://www.vagrantup.com/downloads.html
- Navigate to folder with downloaded repository
- Run "vagrant up webdriver"
- Provision with ansible with command "ansible-playbook playbook.yml -i hosts"
- When it's successful, ssh into "vagrant ssh webdriver"
- cd /var/www/webdriver/
- Install npm packages with "npm install"
- Install selenium server dependencies with "selenium-standalone install", might need to run with sudo
- Run headless server "xvfb-run --server-args="-screen 0, 1366x768x24" selenium-standalone start"
- Edit Testrail credentials in /var/www/wdio.conf.js
- Run test suite "./node_modules/.bin/wdio wdio.conf.js"