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.

This step failed because the client error 'onSubmit script error: ReferenceError: g_scratchpad is no

DebasishG
Kilo Contributor

Hi,

When i execute test script of A-2 form of portal through ATF tool in ServiceNow then i got below error message 

"This step failed because the client error 'onSubmit script error: ReferenceError: g_scratchpad is not defined
function () { [native code] }' was detected on the page being tested. See failing Test Logs. To ignore these errors in the next test run, use 'Add all client errors to warning/ignored list' links."

Could you please how to solve this problem.

Please help me. Thank you in advance.

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@DebasishG 

are you getting same error while submitting using manual testing?

did you run the test after adding that error to Ignore list?

Did it run fine then?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader