CCTC-team / redcap_cypress

REDCap Cypress Test Framework
MIT License
0 stars 0 forks source link

102. Alerts and Notifications #36

Open MintooXavier opened 5 months ago

MintooXavier commented 5 months ago

Brief description: This feature is used to send emails when a record is saved and/or when a condition is met. e.g. when a participant is registered etc.

User spec: https://github.com/CCTC-team/redcap_cypress/blob/redcap_val/user_requirement_specification/non_core/102_alerts_and_notifications.spec

Feature link: https://github.com/CCTC-team/redcap_rsvc/blob/redcap_val/Feature%20Tests/D/Alerts%20and%20Notifications_102/D.102.100%20-%20Alerts%20and%20Notification.feature https://github.com/CCTC-team/redcap_rsvc/blob/redcap_val/Feature%20Tests/D/Alerts%20and%20Notifications_102/D.102.200%20-%20REDUNDANT.feature https://github.com/CCTC-team/redcap_rsvc/blob/redcap_val/Feature%20Tests/D/Alerts%20and%20Notifications_102/D.102.300%20-%20Alerts%20Based%20on%20Conditional%20Logic.feature https://github.com/CCTC-team/redcap_rsvc/blob/redcap_val/Feature%20Tests/D/Alerts%20and%20Notifications_102/D.102.400%20-%20Alerts%20Based%20on%20Conditional%20Logic%20During%20Import.feature https://github.com/CCTC-team/redcap_rsvc/blob/redcap_val/Feature%20Tests/D/Alerts%20and%20Notifications_102/D.102.500%20-%20REDUNDANT.feature https://github.com/CCTC-team/redcap_rsvc/blob/redcap_val/Feature%20Tests/D/Alerts%20and%20Notifications_102/D.102.600%20-%20REDUNDANT.feature

Pre review:

Post review:

MintooXavier commented 1 month ago

@rukayat-yakub : 1. Could you add logging(audit trail) verification at the end of this script. We only need the logs which are specific to the feature and not the whole log. e.g.. When alerts are created, editing etc and not data entry or project creating logs. I am happy to explain this over a call if needed. e.g. e.g. of logging: Alert # 1, alert_title = '', alert_type = 'EMAIL', alert_stop_type = 'RECORD', alert_expiration = '', form_name = 'text_validation', > Put the full entry of the last column

  1. Create a scenario to delete 1 alert and check logging. Logging can be done at the end of the script after delete scenario. Check for create alert, modify alert, send alert, delete alert. (i.e. logging specific to alerts)
rukayat-yakub commented 4 weeks ago

@MintooXavier - Done. Kindly review when you can

MintooXavier commented 1 week ago
  1. Not tested the following:

    • Copy alert
    • Re-enable alert
    • Move alert
    • Permanently delete alert
  2. restructure the script and split it into different scripts.

  3. Modified step definitions

  4. Modified logging

MintooXavier commented 1 week ago

Bug: When selecting the Trigger the alert... when 'is saved with any form status', the logging shows 'trigger_on_instrument_save_status = 'complete_status_only''

When selecting the Trigger the alert... when 'is saved with Complete status only', the logging shows 'trigger_on_instrument_save_status = 'any_status''

Bug fixed in version 14.5.5

MintooXavier commented 1 week ago

Spilt the script into 3 scripts.

Scripts pre-reviewed and Tests Pass for all the above scripts except D.102.400

MintooXavier commented 4 days ago

Lawrence checked and verified the import feature works. It works for me as well now. Maybe some typo error before

D.102.400 - Script modified to verify alert during data import Script Pre-reviewed and Tests Pass

MintooXavier commented 23 hours ago

Scripts Automated:

  1. D.102.100
  2. D.102.200
  3. D.102.300
  4. D.102.400
  5. D.102.500
  6. D.102.600