https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41921

Lucas Gass (lukeg) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|Failed QA                   |Needs Signoff

--- Comment #99 from Lucas Gass (lukeg) <[email protected]> ---
updated test plan:

Test plan
1) Apply patch, updatedatabase, restart all the things
2) prove t/db_dependent/api/v1/reports_jobs.t t/db_dependent/Koha/Reports.t
3) Browse to /cgi-bin/koha/reports/jobs.pl
4) Confirm the page shows 'No reports are running right now.'
   when nothing is in flight, and that the background report
   jobs table renders as before
5) Create an SQL report with body SELECT SLEEP(60), note its id
6) Run it from the staff client in foreground mode
7) Confirm a row appears in the "Currently running" table
8) Refresh the view with the refresh button, note the data changes
9) Let the foreground report finish
10) Confirm the row disappears from the "Currently running" table on the next
refresh
11) Run the same report as a background job
12) Confirm the row appears again with a Type of "background" while the
    worker is executing
13) Confirm the row disappears from the "Currently running" table once the
    worker has finished executing
14) Create a staff user with catalogue, reports > create_reports and
    reports > execute_reports_foreground only, and log in as them in a
    private window
15) Set ReportsRunInBackground to "let the user choose"
16) As the foreground-only user, run the report
    - Confirm you are NOT shown the "How would you like to run this report?"
      choice, and the report runs straight away in the foreground
17) Visit
/cgi-bin/koha/reports/guided_reports.pl?op=run&id=<id>&run_in_background_chosen=1&run_in_background=1
    - Confirm no background job is enqueued (check
/cgi-bin/koha/admin/background_jobs.pl)
18) Change the user to have execute_reports_background but NOT
execute_reports_foreground
19) Run the report
    - Confirm you are NOT shown the choice, and the report is queued as a
background job
20) Visit
/cgi-bin/koha/reports/guided_reports.pl?op=run&id=<id>&run_in_background_chosen=1&run_in_background=0
    - Confirm you get a permission error and the report does not run in the
foreground
21) Visit /cgi-bin/koha/reports/guided_reports.pl?op=export&id=<id>&format=csv
    - Confirm you get a permission error
22) Give the user both execute_reports_foreground and
execute_reports_background
23) Run the report
    - Confirm you ARE shown the choice, and both "Run now" and
      "Queue as background job" work
24) Set ReportsRunInBackground to "always run in the foreground"
25) Change the user to have execute_reports_background but NOT
execute_reports_foreground
26) Go to Reports > Saved reports, and to the report's view page
    - Confirm there is no Run button (the saved reports list shows "View"
instead)
27) Visit /cgi-bin/koha/reports/guided_reports.pl?op=run&id=<id>
    - Confirm you get a permission error
28) Set ReportsRunInBackground to "always run in the background"
29) Change the user to have execute_reports_foreground but NOT
execute_reports_background
30) Go to Reports > Saved reports, and to the report's view page
    - Confirm there is no Run button
31) Visit /cgi-bin/koha/reports/guided_reports.pl?op=run&id=<id>
    - Confirm you get a permission error
32) Change the user to have execute_reports_background
33) Run the report
    - Confirm there is no choice and the report is queued as a background job
34) Log in as a superlibrarian and repeat 15, 24 and 28
    - "let the user choose": both options offered
    - "always run in the foreground": runs in the foreground, no choice
    - "always run in the background": queued as a background job, no choice

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to