Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Using custom ui in ATF returns different components every time.

Dilip Choudhar1
Tera Contributor

I am trying to fill out Risk assessment for a change record with ATF. I am creating a new record in the ATF test but every time I retrieve the Risk assessment components it returns the same components but with different ID's and the ATF is returning the error that the component is not found.

 

When i use an existing change record, it is working fine because we are using the same record.

 

Does anybody have any solution or do we need to raise a support case?

 

#ATF #testing

1 ACCEPTED SOLUTION

Shaqeel
Mega Sage
Mega Sage

Hi @Dilip Choudhar1 

 

Here what I found that might help.

ATF Steps for Change Risk Assessment [HOWTO] - ServiceNow Community

Fill Risk Assessment Using ATF for Change forms - ServiceNow Community

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

*************************************************************************************************************

 

 

Regards

Shaqeel


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

View solution in original post

2 REPLIES 2

dhoward9
Tera Contributor

During the test, on the front end, click the 'risk assessment' link on the change request form. You will see the assessment pop-up. 

This creates an assessment record on the backend, even though you haven't filled it out yet. 

You can then run a server side script to update said assessment.

After that, go back to the change request form (for that record), click on the calculate risk analysis link/action, and now your assessment is both filled out and the risk is calculated. It's ready to move to the next state. 


Shaqeel
Mega Sage
Mega Sage

Hi @Dilip Choudhar1 

 

Here what I found that might help.

ATF Steps for Change Risk Assessment [HOWTO] - ServiceNow Community

Fill Risk Assessment Using ATF for Change forms - ServiceNow Community

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

*************************************************************************************************************

 

 

Regards

Shaqeel


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel