Need help on ATF

pawank2
Tera Expert

We have one variable , it is not visible in portal. while submit the request , ritm and sc_task is generated.

when i open the  sc_task record, variable is visible and it is mandatoy.

so how can i achieve in ATF, I have used set variable value  but it is not working as expected. I am getting error -

g_form  is not defined.

I have created this step after open the existing record.

 

Regards

Pawan

13 REPLIES 13

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @pawank2 

In ATF, you can test a variable only when it is available in the catalog item.

*************************************************************************************************************
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]

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

Hi Atul,

We have variable in catalog item but it is visible on sc_task record.

 

Are you getting the error at the task level or at the item level?
And are you testing the variable at the item level?

*************************************************************************************************************
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]

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

HI Atul,

I have created a step - set variable value after open the existing record(sc_task).

I am getting this error.

pawank2_0-1755596408140.png