https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185 --- Comment #1 from Alex Buckley <alexbuckley@catalyst.net.nz> --- Created attachment 66508 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=66508&action=edit Bug 19185 - Selenium test for the Koha web installer and onboarding tool This Selenium test will go through the web installer and onboarding tool testing the Koha installation workflow. Test plan (this test plan includes how to install Selenium as well as how to run this test, for the benefit of people who have not got Selenium installed on their machines): 1. wget https://selenium-release.storage.googleapis.com/2.53/selenium-server-standal... 2. vim /etc/apt/sources.list.d/firefox.list 3. Paste into the file: deb http://packages.linuxmint.com debian import 4. sudo apt-get update 5. sudo apt-get install firefox 6. sudo apt-get install xvfb 7. Set the SELENIUM_PATH vartiable: SELENIUM_PATH=/home/vagrant/kohaclone/selenium-server-standalone-2.53.0.jar 8. Xvfb :1 -screen 0 1024x768x24 2>&1 >/dev/null & 9. DISPLAY=:1 java -jar $SELENIUM_PATH Note: This will start up the selenium server. Everytime you want to shutdown this terminal window and want to restart Selenium just run the step 9 command to restart the Selenium server 10. Open a new terminal window and write in: git clone https://github.com/gempesaw/Selenium-Remote-Driver --branch build/master --single-branch --depth 1 11. cd Selenium-Remote-Driver 12. perl Makefile.PL 13. make 14. make test 15. sudo make install 16. Now everything is installed and you can et up for running the selenium tests 17. In a new terminal restart memcached and drop and recreate the Koha database 18. sudo koha-shell kohadev 19. perl t/db_dependent/selenium/installkoha.t 20. Notice the db errors saying that database tables do not exist 21. Notice the CP test output messages stating what the test is doing Note: warns exist in this selenium test because using Selenium to test the web installer and onboarding tool has proved to be flaky. The use of warning out the title of the currently loaded page and implementing pauses has helped get the test to pass after many hours of troubleshooting. If anyone can suggest alternatives please do so. Sponsored-By: Catalyst IT -- You are receiving this mail because: You are watching all bug changes.