Test Automation Framework (TAF)
This is the Test Automation Framework (TAF)Created in Ruby and using Watir to allow a user to Automate a website using an Json file type.
Please see the Wiki for more details: https://github.com/Aperrett/TAF/wiki
Double click on `create_test_spec.html` to create test specs. TAF Create Test Specs
chrome chrome-headless firefox firefox-headless TAF Supported Browsers
To use the TAF Script, Navigate to the Code/ Folder. Run the following script: ./taf.sh help TAF script help:
Run the following script: ./taf.sh security_audit Security Audit of Ruby Gems used:
TAF Builder
Run the following script: ./taf.sh build_taf_image To build the TAF Docker image:
Run the following script: ./taf.sh build_taf_gem {internal} or {external} To build the TAF Ruby Gem
TAF Runner - Docker
Run following script in terminal: \ docker run --rm --shm-size 2g \ --env PORTAL_URL="http://url_blah.com" \ --env PORTAL_USER_1="emailblah.com" \ -v "$(pwd)"/target:/app/Results:cached taf taf --tests {test folder name} --browser {browser} To run the TAF in Docker Container
Please note the --env will need to be changed.
* Navigate to the taf project directory. * Run `docker build -f Code/Dockerfile -t taf Code/ && docker run -e DEBUG=1 -p 5901:5901 --rm --shm-size 2g taf --tests {test folder name} --browser {browser}` To run the TAF in debug mode (using VNC)
TAF Runner - Native
Ruby 2.5.1 has to be installed on the system. Pre-Requirements
run bundle install - to install the required gems including the TAF Gem
taf --tests {test folder name} --browser {browser} To run a Test Suite using the TAF Gem:
ruby -Ilib bin/taf -t {test folder name} -b {browser} To run a Test Suite from the cloned repository:
Contributing
If you would like to get involved in supporting this project going forward please get in touch.
Author
Andy Perrett
Copyright and License
Copyright 2017 - 2019 Aperrett
Code released under the MIT License.