Uncaught SyntaxError on ATF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2024 09:28 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2024 11:19 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2024 12:33 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2024 03:00 AM
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
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