]> git.koha-community.org Git - koha.git/commit
Bug 13691: Add basic selenium script
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 10 Feb 2015 15:07:31 +0000 (16:07 +0100)
committerFrédéric Demians <f.demians@tamil.fr>
Mon, 1 Aug 2016 09:38:33 +0000 (11:38 +0200)
commit21f1a17d55e4ee07590ae00442d3bbdb47a10f42
tree0552903f9805fe9fd080d48fa937850a8ec45049
parent9eed19c7c152a6ce3b06c41ae541fde39ed660f8
Bug 13691: Add basic selenium script

This script has been used to compare 3.16.x and 3.18.x performances on
bug 13690.

What it does:
- Go on the mainpage and process a log in
- Create a patron category
- Create a patron
- Add 3 items
- check the 3 items out to the patron
- check the 3 items in

How to use it?

$ wget https://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.0.jar

$ vim /etc/apt/sources.list.d/firefox.list
  deb http://packages.linuxmint.com debian import
$ apt-get update
$ apt-get install firefox
$ sudo apt-get install xvfb

$ SELENIUM_PATH=/home/koha/tools/selenium-server-standalone-2.53.0.jar
$ Xvfb :1 -screen 0 1024x768x24 2>&1 >/dev/null &
$ DISPLAY=:1 java -jar $SELENIUM_PATH

perl t/db_dependent/selenium/basic_workflow.t

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Note the pages have changed so the tests will not all pass.
Also you need Selenium::Remote::Driver installed and staffClientBaseURL
must be set

I will change the tests in a follow up patch.
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 4e415da44c546ba1aae21b40b8c7fb0054a7e0d2)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
t/db_dependent/selenium/basic_workflow.t [new file with mode: 0644]