Bug 19883 - Add a selenium script to hit all the pages
Summary: Add a selenium script to hit all the pages
Status: In Discussion
Alias: None
Product: Koha
Classification: Unclassified
Component: Test Suite (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Jonathan Druart
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks: 19384
  Show dependency treegraph
 
Reported: 2017-12-27 13:01 UTC by Jonathan Druart
Modified: 2018-01-02 16:22 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 19883: Add a selenium script to hit all the pages (17.26 KB, patch)
2017-12-27 13:05 UTC, Jonathan Druart
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Druart 2017-12-27 13:01:19 UTC

    
Comment 1 Jonathan Druart 2017-12-27 13:05:45 UTC
Created attachment 70170 [details] [review]
Bug 19883: Add a selenium script to hit all the pages

The idea here would be to catch possible hidden issues, and especially
when the requested data do not exist (for instance hit
circulation.pl?borrowernumber=42 without borrowernumber=42 in your DB).
All these pages must not return 500.

This is not ready at all for inclusion for several reasons:
- Based on existing data (id=1 most of the time)
- DB will be modified
- Not idempotent
- All pages are not covered (TODO)
Comment 2 Jonathan Druart 2017-12-27 13:08:50 UTC
Even if not included it could be useful for QA or RM
Marcel and Tomas, what do you think?
It could be a nice goal to see all these scripts handling non-existing data.
Comment 3 Marcel de Rooy 2017-12-27 13:34:51 UTC
Nice goal on itself. Protecting the database is obviously needed.
Do several scripts need basic parameters at the beginning already (not only what is filled on a form)? So the script needs to know these; could be a maintenance headache?
Comment 4 Jonathan Druart 2018-01-02 16:22:26 UTC
(In reply to Marcel de Rooy from comment #3)
> Nice goal on itself. Protecting the database is obviously needed.
> Do several scripts need basic parameters at the beginning already (not only
> what is filled on a form)? So the script needs to know these; could be a
> maintenance headache?

I plan to test with GET parameters only.