ATF Issue

Community Alums
Not applicable

Hi,

I have a scenario where I have a variable which is populated not by a table, but my API. I am not sure how to add data to a variable populated by API. My Team lead gave me a client script and asked me to use it. I am not sure how I do it. Kindly help.

 

11.PNG

 

12.PNG

 

 

screenshot_2023_12_26_16_02_59_failed.jpg

 

 

var current_assignment_group = g_form.getDisplayBox('assignment_group').value;
   var siem = g_form.getValue('siem_app_logging');
   //alert('value of siem field is ' + siem);
   if(current_assignment_group == 'SECURITY ANALYTICS AND ORCHESTRATION' && siem == '' ){
       g_form.setMandatory('siem_app_logging', true);
   }

 

 

Regards

Suman P.

1 REPLY 1

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Community Alums 

 

https://developer.servicenow.com/blog.do?p=/post/using-atf-rest-api-test-steps/

 

Check this link.

https://www.servicenow.com/community/developer-articles/building-atf-tests-for-outbound-rest-apis/ta-p/2305232

 

https://docs.servicenow.com/bundle/tokyo-application-development/page/administer/auto-test-framework/reference/atf-rest-properties.html

 

*************************************************************************************************************
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
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

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