Uncaught SyntaxError on ATF

SnowDevOps
Giga Guru

Hello

I'm building an ATF for a catalog item. I keep getting this error but i'm not sure why. I checked on the First Failing Step, it is looking ok issue on the setting. But i always run into this error. Need some help ! Thanks 

SnowDevOps_0-1724041523025.png

 

3 REPLIES 3

Sujit Jadhav
Tera Guru

Hello @SnowDevOps ,

 

 

In ServiceNow Automated Test Framework (ATF), encountering an Uncaught SyntaxError typically indicates a problem in the custom scripts or test steps you're running as part of your ATF tests. This error could arise from a variety of issues such as syntax errors in the JavaScript code, missing or incorrect references, or other issues in the test script.

Review the logs of the ATF test run. They can provide additional context or show where the error happened during the test execution.

 

Please mark my answer Correct/Helpful, If applicable

 

Regards,

Sujit

Shaqeel
Mega Sage
Mega Sage

@SnowDevOps 

 

Kindly attach the test step used for much clarifications.

@Sujit Jadhav , This is not the right place to use gpt, reply only you have the answer, and you don't need to second id to increase the likes here. Snow is not stupid.

 

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

Community Alums
Not applicable

Hi @SnowDevOps 

Open the Error step in Test results and there below you will find related links as below image there select any one from add all client errors to warning list/ ignored list

ATF Warnings or client error.png

 

 

and then run the test and check the result even though if it didn't help out refer below KB Article

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0725054 

 

Please mark my answer Correct/Helpful, If applicable

 

Regards

Mohammed Sazid