[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality - part 1

2018-02-13 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Jonathan Druart  changed:

   What|Removed |Added

 Status|Passed QA   |Pushed to Master

--- Comment #34 from Jonathan Druart  
---
Patches pushed to master for 18.05.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality - part 1

2018-02-13 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Jonathan Druart  changed:

   What|Removed |Added

 Status|Needs Signoff   |Signed Off

--- Comment #33 from Jonathan Druart  
---
These patches will serve as examples for other selenium tests.
I am skipping QA as we need these tests to catch possible regressions.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality - part 1

2018-02-13 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Jonathan Druart  changed:

   What|Removed |Added

 Status|Signed Off  |Passed QA

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality - part 1

2018-01-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Jonathan Druart  changed:

   What|Removed |Added

  Attachment #70162|0   |1
is obsolete||
  Attachment #70163|0   |1
is obsolete||
  Attachment #70164|0   |1
is obsolete||

--- Comment #30 from Jonathan Druart  
---
Created attachment 70268
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70268=edit
Bug 19243: The "delete library" is now a button with id

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality - part 1

2018-01-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #31 from Jonathan Druart  
---
Created attachment 70269
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70269=edit
Bug 19243: Fix tests for AV

The tricky part here was to find an alternative for ends-with in Xpath
version 1
Indeed there are 2  button with
"/admin/authorised_values.pl?op=add_form", and the first one was picked
(/admin/authorised_values.pl?op=add_form=Asort1)

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality - part 1

2018-01-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #32 from Jonathan Druart  
---
Created attachment 70270
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70270=edit
Bug 19243: Fix tests for patron categories

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality - part 1

2018-01-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Jonathan Druart  changed:

   What|Removed |Added

 Blocks|19914   |
 Depends on||19914


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19914
[Bug 19914] Cannot locate the "Delete" in the library list table
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality - part 1

2018-01-04 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Jonathan Druart  changed:

   What|Removed |Added

 Blocks||19914


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19914
[Bug 19914] Cannot locate the "Delete" in the library list table
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality - part 1

2017-12-26 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Jonathan Druart  changed:

   What|Removed |Added

 Blocks||19880


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19880
[Bug 19880] Selenium test for testing the administration module functionality -
part 2
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-12-26 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #29 from Jonathan Druart  
---
(In reply to Alex Buckley from comment #23)
> Hi Jonathan

Hi Alex,

> I have just attached a patch which tests the creation of an authorised value
> and a patron category. 
> 
> The difficulties I faced with adding these were that a modal box is
> displayed when you delete authorised values. Trying to confirm the deletion
> with the modal box is problematic and I have not been able to find a
> solution for that yet. 
> 
There were some issues in your patch. You must keep in mind than the tests have
to pass on other installations and your tests must not modify the DB (so you
must cleanup).
Take a look at the last 2 patches, they fix the different problems.
To confirm a modal, you need to call $driver->accept_alert;

> Additionally in the creation of patron categories you must select a value
> from a dropdown box, I am still trying to find a solution for this. 

You just need to specify the id of the select and the value of the option you
want to select.

> I will be away from my computer for the next 3.5 weeks whilst travelling in
> Egypt and Jordan and will be able to return to this in mid Jan along with
> other Koha development work I am working on.

Enjoy your holidays then :)

I am going to open another bug report for the pages we do not test in these
patches and let this one moving on.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality - part 1

2017-12-26 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Jonathan Druart  changed:

   What|Removed |Added

Summary|Selenium test for testing   |Selenium test for testing
   |the administration module   |the administration module
   |functionality   |functionality - part 1
 Status|ASSIGNED|Needs Signoff

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-12-26 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #28 from Jonathan Druart  
---
Created attachment 70164
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70164=edit
Bug 19243: Fix tests for patron categories

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-12-26 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #27 from Jonathan Druart  
---
Created attachment 70163
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70163=edit
Bug 19243: Fix tests for AV

The tricky part here was to find an alternative for ends-with in Xpath
version 1
Indeed there are 2  button with
"/admin/authorised_values.pl?op=add_form", and the first one was picked
(/admin/authorised_values.pl?op=add_form=Asort1)

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-12-26 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #25 from Jonathan Druart  
---
Created attachment 70161
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70161=edit
Bug 19243: Fix for bug 19860

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-12-26 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #26 from Jonathan Druart  
---
Created attachment 70162
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70162=edit
Bug 19243: Temporary comment failing test - see bug 19560 comment 30

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-12-26 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #24 from Jonathan Druart  
---
Created attachment 70160
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=70160=edit
Bug 19243: fix urls - do not use /cgi-bin/koha

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-12-19 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #23 from Alex Buckley  ---
Hi Jonathan

I have just attached a patch which tests the creation of an authorised value
and a patron category. 

The difficulties I faced with adding these were that a modal box is displayed
when you delete authorised values. Trying to confirm the deletion with the
modal box is problematic and I have not been able to find a solution for that
yet. 

Additionally in the creation of patron categories you must select a value from
a dropdown box, I am still trying to find a solution for this. 

I will be away from my computer for the next 3.5 weeks whilst travelling in
Egypt and Jordan and will be able to return to this in mid Jan along with other
Koha development work I am working on.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-12-19 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #22 from Alex Buckley  ---
Created attachment 69939
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=69939=edit
Bug 19243 - Amended Selenium test to add the creation of patron category and
authorised values

Sponsored-By: Catalyst IT

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-12-13 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Josef Moravec  changed:

   What|Removed |Added

 CC||josef.mora...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-12-12 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Jonathan Druart  changed:

   What|Removed |Added

 Status|Failed QA   |ASSIGNED

--- Comment #21 from Jonathan Druart  
---
Hi Alex,

I have tried to make your work moving forward in order to unlock all the other
bug reports linked to this one.

I would like you to take a look at the changes I made on bug 19802 and this
one.
Basically I have refactored the existing code and added new methods to help us
in writing selenium tests easily.
You will notice that I did not need to change Koha code (which is wanted).

This patch does not contain all the tests you wrote previously, it would be
good to know if you manage to rewrite them easily without impacting Koha
template code.

Let me know if you face any difficulties or if you have questions.

Cheers,
Jonathan

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-12-12 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Jonathan Druart  changed:

   What|Removed |Added

  Attachment #68123|0   |1
is obsolete||
  Attachment #68124|0   |1
is obsolete||
  Attachment #68125|0   |1
is obsolete||
  Attachment #68832|0   |1
is obsolete||
  Attachment #68833|0   |1
is obsolete||

--- Comment #20 from Jonathan Druart  
---
Created attachment 69757
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=69757=edit
Bug 19243: Add selenium tests for the administration module

This is just a start.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-12-12 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Jonathan Druart  changed:

   What|Removed |Added

 Depends on||19802


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19802
[Bug 19802] Move Selenium code to its own module
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-12-12 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Jonathan Druart  changed:

   What|Removed |Added

 Blocks||19359


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19359
[Bug 19359] Reporting module selenium test
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-11-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

M. Tompsett  changed:

   What|Removed |Added

 Blocks||18974


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18974
[Bug 18974] Cataloging MARC21 record and adding item selenium test
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-11-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

M. Tompsett  changed:

   What|Removed |Added

 Blocks||19185


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19185
[Bug 19185] Web installer and onboarding tool selenium test
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-11-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

M. Tompsett  changed:

   What|Removed |Added

 Blocks||19189


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19189
[Bug 19189] Reserving and renewing item in OPAC selenium test
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-11-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

M. Tompsett  changed:

   What|Removed |Added

 Blocks||19183


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19183
[Bug 19183] Acquisition module setup selenium test
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-11-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

M. Tompsett  changed:

   What|Removed |Added

 Blocks||19184


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19184
[Bug 19184] Purchase workflow selenium test
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-11-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

M. Tompsett  changed:

   What|Removed |Added

 Blocks||19181


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19181
[Bug 19181] Intranet and OPAC authentication selenium test
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-11-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

M. Tompsett  changed:

   What|Removed |Added

 Blocks||19182


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19182
[Bug 19182] Item search in intranet and OPAC selenium test
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

M. Tompsett  changed:

   What|Removed |Added

 Status|Needs Signoff   |Failed QA

--- Comment #19 from M. Tompsett  ---
(In reply to Jonathan Druart from comment #15)
> Alex, some remarks:
> 1. take a look at basic_workflow.t, there are some changes you did not take
> into account (19337)
> 2. Tests must create the data they need and delete them. Here you are using
> the FA framework and modify it. That means the tests will fail if executed
> twice.
> 3. The cleanup method is wrong, it should not be a method as the different
> selenium test files will have different a cleanup.
> 4. t::lib::Selenium::pause_driver does not work as you would like?

I didn't look to see if the code actually address points 2-4. I believe my
patches deal with 1. I'm going to set this to Failed QA, even though the tests
ran successfully.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #17 from M. Tompsett  ---
Created attachment 68832
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=68832=edit
Bug 19243: Patch t/lib/Selenium to use ENV and fix login.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #18 from M. Tompsett  ---
Created attachment 68833
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=68833=edit
Bug 19243: Change to use ENV and fix passwords

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

M. Tompsett  changed:

   What|Removed |Added

 CC||mtomp...@hotmail.com

--- Comment #16 from M. Tompsett  ---
(In reply to Jonathan Druart from comment #15)
> 4. t::lib::Selenium::pause_driver does not work as you would like?

Where is t::lib::Selenium{anything}?
It's not in master.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-16 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #15 from Jonathan Druart  
---
Alex, some remarks:
1. take a look at basic_workflow.t, there are some changes you did not take
into account (19337)
2. Tests must create the data they need and delete them. Here you are using the
FA framework and modify it. That means the tests will fail if executed twice.
3. The cleanup method is wrong, it should not be a method as the different
selenium test files will have different a cleanup.
4. t::lib::Selenium::pause_driver does not work as you would like?

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-13 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #14 from Alex Buckley  ---
Created attachment 68125
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=68125=edit
Bug 19243 - Followup patch with xpaths changed to id's

Sponsored-By: Catalyst IT

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-13 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #12 from Alex Buckley  ---
Created attachment 68123
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=68123=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 

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.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-13 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #13 from Alex Buckley  ---
Created attachment 68124
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=68124=edit
Bug 19243 - Followup moving common Selenium functions into a seperate module

In this patch a module t/lib/Selenium.pm has been created and it
contains the auth, patron_auth, patron_opac_auth, cleaup, time_difffunctions
which are common to other Selenium text scripts.

Also a function to wait for an element to be found before it is
interacted with was created and it is called pause_driver

At present this pause_driver function throws an error in the test output
saying that it cannot find an element and then it fails.

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 

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.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-13 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Alex Buckley  changed:

   What|Removed |Added

  Attachment #67495|0   |1
is obsolete||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-13 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Alex Buckley  changed:

   What|Removed |Added

  Attachment #67497|0   |1
is obsolete||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-13 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Alex Buckley  changed:

   What|Removed |Added

  Attachment #67494|0   |1
is obsolete||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-02 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #11 from Jonathan Druart  
---
Quick note, to not forget:
Steps 10-15 should be
  sudo cpanm -i Selenium::Remote::Driver

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #10 from Alex Buckley  ---
Created attachment 67497
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=67497=edit
Bug 19243 - Followup patch with xpaths changed to id's

Sponsored-By: Catalyst IT

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Alex Buckley  changed:

   What|Removed |Added

  Attachment #67496|0   |1
is obsolete||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #9 from Alex Buckley  ---
Created attachment 67496
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=67496=edit
Bug 19243 - Followup patch with xpaths changed to id's

Sponsored-By: Catalyst IT

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #8 from Alex Buckley  ---
Created attachment 67495
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=67495=edit
Bug 19243 - Followup moving common Selenium functions into a seperate module

In this patch a module t/lib/Selenium.pm has been created and it
contains the auth, patron_auth, patron_opac_auth, cleaup, time_difffunctions
which are common to other Selenium text scripts.

Also a function to wait for an element to be found before it is
interacted with was created and it is called pause_driver

At present this pause_driver function throws an error in the test output
saying that it cannot find an element and then it fails.

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:
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 set up for running the
selenium tests

17. Drop and recreate the Koha database and restart memcached

18. Go through the web installer installing all sample data and
onboarding tool

19. Create a superlibrarian user with the username koha and password
koha

20. 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

21. sudo koha-shell 

22. perl t/db_dependent/selenium/administration_tasks.t

23. 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.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #7 from Alex Buckley  ---
Created attachment 67494
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=67494=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:
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 set up for running the
selenium tests

17. Drop and recreate the Koha database and restart memcached

18. Go through the web installer installing all sample data and
onboarding tool

19. Create a superlibrarian user with the username koha and password koha

20. 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

21. sudo koha-shell 

22. perl t/db_dependent/selenium/administration_tasks.t

23. 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.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Alex Buckley  changed:

   What|Removed |Added

  Attachment #67493|0   |1
is obsolete||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #6 from Alex Buckley  ---
Created attachment 67493
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=67493=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:
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 set up for running the
selenium tests

17. Drop and recreate the Koha database and restart memcached

18. Go through the web installer installing all sample data and
onboarding tool

19. Create a superlibrarian user with the username koha and password koha

20. 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

21. sudo koha-shell 

22. perl t/db_dependent/selenium/administration_tasks.t

23. 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.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Alex Buckley  changed:

   What|Removed |Added

  Attachment #67492|0   |1
is obsolete||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Alex Buckley  changed:

   What|Removed |Added

  Attachment #66788|0   |1
is obsolete||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #5 from Alex Buckley  ---
Created attachment 67492
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=67492=edit
Bug 19243 - Selenium test for testing administrative tasks

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-10-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #4 from Alex Buckley  ---
Hi Jonathan

Sorry I forgot to attach the newly updated patch containing t/lib/Selenium.pm.

This Perl module contains the Selenium functions common across all the the
Selenium tests for example auth.

I have tried to attach the new patch to the bug report a few minutes ago and I
am getting a SSL certificate verify failed error, so I am in the process of
troubleshooting now.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-09-29 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #3 from Alex Buckley  ---
Hi Jonathan

I have moved out the common Selenium functions (auth, patron_auth,
patron_opac_auth, fill_form, cleanup) and have placed them in
t/lib/Selenium.pm.

Running the tests after doing that I found that they passed successfully.

I will continue working on this tommorow but I have not been able to get the
wait_until function working correctly after a lot of troubleshooting ( you can
see it in t::lib::Selenium.pm)

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-09-28 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Alex Buckley  changed:

   What|Removed |Added

  Attachment #67433|0   |1
is obsolete||

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-09-28 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #2 from Alex Buckley  ---
Created attachment 67433
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=67433=edit
Bug 19243 - Followup moving common Selenium functions into a seperate module

In this patch a module t/lib/Selenium.pm has been created and it
contains the auth, patron_auth, patron_opac_auth, cleaup, time_difffunctions
which are common to other Selenium text scripts.

Also a function to wait for an element to be found before it is
interacted with was created and it is called pause_driver

At present this pause_driver function throws an error in the test output
saying that it cannot find an element and then it fails.

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:
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 set up for running the
selenium tests

17. Drop and recreate the Koha database and restart memcached

18. Go through the web installer installing all sample data and
onboarding tool

19. Create a superlibrarian user with the username koha and password
koha

20. 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

21. sudo koha-shell 

22. perl t/db_dependent/selenium/administration_tasks.t

23. 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.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-09-28 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Jonathan Druart  changed:

   What|Removed |Added

 Blocks||19384
 CC||jonathan.dru...@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.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-09-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

--- Comment #1 from Alex Buckley  ---
Created attachment 66788
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=66788=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:
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 set up for running the
selenium tests

17. Drop and recreate the Koha database and restart memcached

18. Go through the web installer installing all sample data and
onboarding tool

19. Create a superlibrarian user with the username koha and password koha

20. 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

21. sudo koha-shell 

22. perl t/db_dependent/selenium/administration_tasks.t

23. 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.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 19243] Selenium test for testing the administration module functionality

2017-09-01 Thread bugzilla-daemon
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19243

Alex Buckley  changed:

   What|Removed |Added

 Status|ASSIGNED|Needs Signoff

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/