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

--- Comment #92 from Hammat wele <[email protected]> ---
(In reply to David Nind from comment #91)
> I realise I'm being lazy, but can we get a consolidated test plan (since
> there are so many follow-ups now).
> 
> Thanks!
> 
> David
> 
> PS: Patches still apply.
> 
> PPS: I obsoleted some older patches.


Thanks David. Here is a consolidated test plan.

Test plan

Make sure there are data inconsistencies in at least two different categories
to validate the results of the command.

Using KTD:

1. There is already an invalid MARCXML record in the sample data (record 369).
2. Create an inconsistency for patron age/category:
   `./koha-mysql kohadev`
   `UPDATE borrowers SET categorycode = "K" WHERE borrowernumber = 49;`
3. Apply the patches
4. Run the script without any option:
`./misc/maintenance/search_for_data_inconsistencies.pl`
   ==> The script should not run any checks.
   ==> The help information should be displayed.
5. Run the script with specific checks with `--check-*`, for example
`./misc/maintenance/search_for_data_inconsistencies.pl --check-status
--check-age`
   ==> Only the checks specified with `--check-*` should be run.
   ==> Other checks should not be run.
6. Run the script with a single `--skip-*` option:
`./misc/maintenance/search_for_data_inconsistencies.pl --skip-age`
   ==> All checks except the age check should be run.
   ==> Other inconsistencies, such as the invalid MARCXML record, should still
be reported.
7. Run the script with multiple `--skip-*`
options:`./misc/maintenance/search_for_data_inconsistencies.pl --skip-age
--skip-status`
   ==> All checks except the checks specified with `--skip-*` should be run.
   ==> The age and status checks should not be run.
8. Run the script with `--check-all` option:
`./misc/maintenance/search_for_data_inconsistencies.pl --check-all`
   ==> All available checks should be run.
9. Combine `--check-*` and `--skip-*`:
`./misc/maintenance/search_for_data_inconsistencies.pl --check-age
--skip-status`
   ==> A warning should indicate that the `--skip-*` option(s) are ignored.
   ==> Only the check specified by `--check-age` should be run.
10. Combine `--check-all` and
`--skip-*`:`./misc/maintenance/search_for_data_inconsistencies.pl --check-all
--skip-status`
   ==> A warning should indicate that the `--skip-*` option(s) are ignored.
   ==> All checks should be run.
11. Run the script with `--help` option
:`./misc/maintenance/search_for_data_inconsistencies.pl --help`
   ==> The help message should be displayed.
12. Verify each individual `--check-*` option.
    For each available `--check-*` option, run it individually, for example:
      ./misc/maintenance/search_for_data_inconsistencies.pl --check-age
      ./misc/maintenance/search_for_data_inconsistencies.pl --check-status  
   ==> Each command should run only its corresponding check.
   ==> Only inconsistencies detected by that check should be reported.
13. Verify each individual `--skip-*` option. For each available `--skip-*`
option, run it individually, for example:
   ./misc/maintenance/search_for_data_inconsistencies.pl --skip-status
   ./misc/maintenance/search_for_data_inconsistencies.pl --skip-age
   ==> All checks except the specified one should be executed.

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