Skip to content

Commit 5bdb4d3

Browse files
authored
[Test Plan] Login Statistics and Dataquery test update (#9671)
Update the test plan for Login Statistics in both the Login module and dataquery module.
1 parent 155136d commit 5bdb4d3

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

modules/dataquery/test/TestPlan.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
14. Click the pinned query.
3636
15. Assert that: the confirmation message `Query loaded` is displayed and query can immediately be executed.
3737
16. Try pinning a query with `Pin Study Query`, `Pin Dashboard Summary` and `Pin to Login Page` options.
38-
17. Assert that: `Study Queries` in the dataquery module **AND** `Study Queries` in LORIS welcome page **AND** `Data in LORIS` on the LORIS Login Page are displayed.
38+
17. For testing the `Pin to Login Page` option, check the Login module test plan: `modules/login/test/Login_Statistics_Test_Plan.md`.
39+
18. Assert that: `Study Queries` in the dataquery module **AND** `Study Queries` in LORIS welcome page **AND** `Data in LORIS` on the LORIS Login Page are displayed.
3940
14. Assert that: the query is now pinned at the top of the page, in `Study Queries` panel.
4041
15. Go back to `LORIS main page`.
4142
16. Assert that: `starred queries` are available in the right side `Starred Queries` panel.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Login Statistics Test Plan
2+
3+
1. Create a query in the dataquery module, including the Project column.
4+
2. Pin the query to the login page by pressing the Pin icon, then entering a name,
5+
and checking "Pin to Login Page". If a query returns more than one row, the name will be appended with an 's'. Note that the query will not be pinned if it returns 0 rows, and will not be pinned if it does not include the Project column.
6+
3. Run `tools/update_login_summary_statistics.php` and confirm the output matches the count of the rows
7+
from the dqt.
8+
4. Log out of LORIS and confirm you can see the Login Statistics widget along with the pinned DQT query.
9+
5. If the directory `project/tools/Login_Summary_Statistics` is non-existant then the script should have defaulted to using the sql files from the directory `SQL/Login_Summary_Statistics` instead. Confirm that if the directory `project/tools/Login_Summary_Statistics` was non-existant, then the sql queries from the directory `SQL/Login_Summary_Statistics` were added to the widget. If files exist in the directory `project/tools/Login_Summary_Statistics`, confirm that those queries were added instead.
10+
6. Set a Project in SQL to have `showSummaryOnLogin = False`. Then run the script again and confirm
11+
that the project is no longer displayed in the Login Statistics widget, and the numbers are not included in the All project.

0 commit comments

Comments
 (0)