Loading...
Loading...
When you select a Test plan with zero duration and click on 'Generate Control Tests' it doesn't create control tests even though "Control tests have been generated" message is displayed on the form. Steps to Reproduce 1) Go to Audit > Enagements > Create New 2) Fill all the mandatory details on the form. 3) Add Planned start date/Fieldwork planned start in the future, with a Planned duration/Fieldwork planned duration of at-least 1 day. 4) Save the record. 5) In the Entities related list, add Entities with controls that have Test plans. The duration of the Test plan should be 0. 6) Click the Validate button. 7) Under Test Plans related list, select the Test plan with zero duration and click Generate Control Tests. Note: Make sure that the Control in the selected Test plan is not retired and the Control test doesn't already exist for the Test plan.) 8) Notice that the Control tests are not generated. Workaround 1. Open the business rule: Populate fields when Test plan changes on Control Test table. (Link: /sys_script.do?sys_id=0b96e372c3030200dd921a4112d3aed0). 2. Make changes to the above business rule as per the below snippet. ------EXISTING SCRIPT------------ current["short_description"] = current.test_plan.short_description; current["design_expectations"] = current.test_plan.design_expectations; current["design_assessment_procedures"] = current.test_plan.design_assessment_procedures; current["operation_expectations"] = current.test_plan.operation_expectations; current["operation_assessment_procedures"] = current.test_plan.operation_assessment_procedures; current["duration"] = current.test_plan.duration; current["control"] = current.test_plan.control; -------MODIFIED SCRIPT----------- current["short_description"] = current.test_plan.short_description; current["design_expectations"] = current.test_plan.design_expectations; current["design_assessment_procedures"] = current.test_plan.design_assessment_procedures; current["operation_expectations"] = current.test_plan.operation_expectations; current["operation_assessment_procedures"] = current.test_plan.operation_assessment_procedures; current["duration"] = current.test_plan.duration ? current.test_plan.duration : new GlideDuration(0); current["control"] = current.test_plan.control; 3. Save the business rule. This will fix the issue.
PRB1499722
Click on a version to see all relevant bugs
ServiceNow Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.