[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sat Oct 14 05:51:45 CEST 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243
--- Comment #12 from Alex Buckley <alexbuckley at catalyst.net.nz> ---
Created attachment 68123
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=68123&action=edit
Bug 19243 - Selenium test for testing administrative tasks
This selenium test checks the following Administrative module
functionality:
* Add item type
* Add circulation rule
* Modify frameworks
* Add library
* Add authorised values
* Add patron category
* Add patron attribute type
* Add Z39.50 target server
* Add item circulation alert
* Add city
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-standalone-2.53.0.jar
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:
sudo cpanm -i Selenium::Remote::Driver
11. Now everything is installed and you can set up for running the
selenium tests
12. Drop and recreate the Koha database and restart memcached
13. Go through the web installer installing all sample data and
onboarding tool
14. Create a superlibrarian user with the username koha and password koha
15. If your usual port configuration for the intranet and OPAC is
8081 and 8080 respectively then set the staffClientBaseURL and
OPACBaseURL system preferences to localhost:8080 and localhost:80
respectively
16. sudo koha-shell <instancename>
17. perl t/db_dependent/selenium/administration_tasks.t
18. The test should pass.
Note: The time_diff comments in the test output showing what the
test is doing
Note: If you have issues with installing Selenium and
Selenium::Remote::Driver please write a comment on the bug report
and I will be more than happy to create a screencapture video
showing all the steps
Note: Warns in front of the $driver->get_title() function have been
implemented because during troubleshooting they were found to be an
effective solution for stopping the test from failing due to not
being able to find an element on the page. If anyone can suggest an
alternative to using these warns please do
Sponsored-By: Catalyst IT
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list