sudo apt-get install libtest-www-mechanize-perl
export KOHA_USER=kohaadmin export KOHA_PASS=katikoan export KOHA_INTRANET_URL=http://localhost:8080 export KOHA_OPAC_URL=http://localhost
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8300 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #12226|0 |1 is obsolete| | Attachment #16516|0 |1 is obsolete| | --- Comment #26 from Kyle M Hall <kyle@bywatersolutions.com> --- Created attachment 17394 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=17394&action=edit Bug 8300: Add mechanized unit test for batch import This new unit test confirms that importing records via the Stage MARC import tool still works by connecting to a Koha instance and importing a record then reverting the import, checking at each step of the way that everything is as it should be. To test: 1. Install Test::WWW::Mechanize 2. Set environment variables to reflect your Koha instance: 3. Run the test:
prove t/db_dependent/www/batch.t
This updated patch now handles both MARC21 and UNIMARC installations. Signed-off-by: Magnus Enger <magnus@enger.priv.no> All tests pass with marcflavour = MARC21 and NORMARC. Test #15 fails when marcflavour = UNIMARC, but from what I can see, that is because I'm testing on a MARC21 setup, missing the UNIMARC frameworks etc. I'm signing off - QA folks, please ask for a proper UNIMARC signoff if you feel it is needed. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.