[Bug 19182] New: Item search in intranet and OPAC selenium test
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19182 Bug ID: 19182 Summary: Item search in intranet and OPAC selenium test Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Test Suite Assignee: alexbuckley@catalyst.net.nz Reporter: alexbuckley@catalyst.net.nz QA Contact: testopia@bugs.koha-community.org This selenium test will create a new biblio and add items to that biblio and then the item search functionality in the intranet and OPAC will be used to try to find the added biblio in the catalogue -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19182 --- Comment #1 from Alex Buckley <alexbuckley@catalyst.net.nz> --- Created attachment 66503 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=66503&action=edit Bug 19182 - Selenium test for searching for an item in the intranet and OPAC This Selenium test goes through the process of creating a category and patron user (as is completed in the basic_workflow.t test). Then this newly created patron user is used to create a new biblio and add items to that biblio. The item search functionality in the intranet and OPAC is used to try to find the biblio. If results to the item search query are displayed then the test outputs 'Found item in inranet' and 'Found item in OPAC' are shown 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 shut down 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. Create a superlibrarian user with the username koha and password koha 18. 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 19. Ensure your catalogue is empty 20. Clear and rebuild your Koha index: sudo koha-shell <instancename> 21. export the PERL5LIB variable 22. zebraidx -c /etc/koha/sites/<instancename>/zebra-authorities-dom.cfg -g iso2709 -d authorities init 23. zebraidx -c /etc/koha/sites/<instancename>/zebra-biblios.cfg -g iso2709 -d biblios init 24. exit 25. sudo su 26. sudo koha-rebuild-zebra -f -v <instancename> 27. exit 28. sudo koha-shell <instancename> 29. perl t/db_dependent/selenium/authenticate.t 30. 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 Sponsored-By: Catalyst IT -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19182 Alex Buckley <alexbuckley@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff --- Comment #2 from Alex Buckley <alexbuckley@catalyst.net.nz> --- This patch was originally attached to 18974 however I have placed it in its own bug report to make testing more straightforward -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19182 Alex Buckley <alexbuckley@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #66503|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19182 --- Comment #3 from Alex Buckley <alexbuckley@catalyst.net.nz> --- Created attachment 66504 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=66504&action=edit Bug 19182 - Selenium test for searching for an item in the intranet and OPAC This Selenium test goes through the process of creating a category and patron user (as is completed in the basic_workflow.t test). Then this newly created patron user is used to create a new biblio and add items to that biblio. The item search functionality in the intranet and OPAC is used to try to find the biblio. If results to the item search query are displayed then the test outputs 'Found item in inranet' and 'Found item in OPAC' are shown 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 shut down 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. Create a superlibrarian user with the username koha and password koha 18. 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 19. Ensure your catalogue is empty 20. Clear and rebuild your Koha index: sudo koha-shell <instancename> 21. export the PERL5LIB variable 22. zebraidx -c /etc/koha/sites/<instancename>/zebra-authorities-dom.cfg -g iso2709 -d authorities init 23. zebraidx -c /etc/koha/sites/<instancename>/zebra-biblios.cfg -g iso2709 -d biblios init 24. exit 25. sudo su 26. sudo koha-rebuild-zebra -f -v <instancename> 27. exit 28. sudo koha-shell <instancename> 29. perl t/db_dependent/selenium/authenticate.t 30. 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 Sponsored-By: Catalyst IT -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19182 Alex Buckley <alexbuckley@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=18974 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19182 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |19384 CC| |jonathan.druart@bugs.koha-c | |ommunity.org Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19384 [Bug 19384] [OMNIBUS] Add Selenium tests -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19182 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #66504|0 |1 is obsolete| | --- Comment #4 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 68826 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=68826&action=edit Bug 19182 - Selenium test for searching for an item in the intranet and OPAC This Selenium test goes through the process of creating a category and patron user (as is completed in the basic_workflow.t test). Then this newly created patron user is used to create a new biblio and add items to that biblio. The item search functionality in the intranet and OPAC is used to try to find the biblio. If results to the item search query are displayed then the test outputs 'Found item in inranet' and 'Found item in OPAC' are shown 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 shut down 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. Create a superlibrarian user with the username koha and password koha 18. 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 19. Ensure your catalogue is empty 20. Clear and rebuild your Koha index: sudo koha-shell <instancename> 21. export the PERL5LIB variable 22. zebraidx -c /etc/koha/sites/<instancename>/zebra-authorities-dom.cfg -g iso2709 -d authorities init 23. zebraidx -c /etc/koha/sites/<instancename>/zebra-biblios.cfg -g iso2709 -d biblios init 24. exit 25. sudo su 26. sudo koha-rebuild-zebra -f -v <instancename> 27. exit 28. sudo koha-shell <instancename> 29. perl t/db_dependent/selenium/authenticate.t 30. 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 Sponsored-By: Catalyst IT -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19182 --- Comment #5 from M. Tompsett <mtompset@hotmail.com> --- Created attachment 68827 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=68827&action=edit Bug 19182: Change to use ENV, fix login and passwords The kohadevbox has admin/admin set, so for testing when creating the initial superuser, if you wish to minimize effort, use admin/admin. Otherwise, make sure to: export KOHA_USER={whatever your user is} export KOHA_PASS={whatever your password is} before attempting to run the test. Also, this test was failing because of a validation check on the passwords requiring uppercase letters, lowercase letters, and numbers. Changed the sample data passwords to fix. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19182 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off CC| |mtompset@hotmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19182 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |BLOCKED --- Comment #6 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Blocked by bug 19243. We need to find a clean way to continue. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19182 M. Tompsett <mtompset@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |19243 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243 [Bug 19243] Selenium test for testing the administration module functionality -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19182 Alex Buckley <alexbuckley@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|alexbuckley@catalyst.net.nz |chris@bigballofwax.co.nz --- Comment #7 from Alex Buckley <alexbuckley@catalyst.net.nz> --- As I don't have time to work on this at present I am unassigning myself in case someone else wants to take it on. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19182 Jonathan Druart <jonathan.druart@bugs.koha-community.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|BLOCKED |NEW --- Comment #8 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- The tests need to be rewritten completely. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org