Fill Risk Assessment Using ATF for Change forms
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2022 12:03 AM
@Chris Doernbrack
Hi Brian, Chris
I am trying to Test Change forms using ATF where I was Struck at a point to Fill the Risk Assessment. So once a user fills that risk assessment and submits the Risk value is populated.
Approaches I Tried as of now:
1. Using the Custom UI step in ATF.
2. Directly inserting the record into metric result on that particular Change Form.
Share me your thoughts, which will help me.
Regards,
Midilesh.
- Labels:
-
Automated Test Framework

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2022 08:13 AM
I wrote an article on how to do this. We are using the Out of the box assessment so there may be some changes you need to make.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2022 08:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2022 08:57 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2022 09:53 AM
- You would need to modify the step configuration inputs to match your questions and there values.
- you would need to modify this section of code to match your new inputs.
var bis_svc = inputs.u_ci_business_service; var complex = inputs.u_complexity_of_change; var dificult = inputs.u_difficult_to_revert; var redundancy = inputs.u_redundancy_plan; var verify = inputs.u_verification_change;
- You would also need to modify this section of code to set the correct values base on the names of your questions.
while (setResponse.next()) { //set assessment answers if (setResponse.metric.name == 'Complexity of change') { setResponse.value = complex; } else if (setResponse.metric.name == 'Difficult to revert') { setResponse.value = dificult; } else if (setResponse.metric.name == 'Verification of change') { setResponse.value = verify; } else if (setResponse.metric.name == 'Affect critical CI or Business Service') { setResponse.value = bis_svc; } else { setResponse.value = redundancy; } setResponse.update(); }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2022 11:57 AM