Open MintooXavier opened 5 months 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
@MintooXavier - Done. Kindly review when you can
Not tested the following:
restructure the script and split it into different scripts.
Modified step definitions
Modified logging
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
Spilt the script into 3 scripts.
Scripts pre-reviewed and Tests Pass for all the above scripts except D.102.400
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
Scripts Automated:
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: