ATF Error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi Team,
We have multiple ATFs failing with below message, any idea what the issue is? And it seems to work some time and fails other times, even though the steps remain the same.
Click a UI Action
This step failed because the client error 'Uncaught ReferenceError: g_form is not defined' 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.
Uncaught ReferenceError: g_form is not defined
In this step we are trying to click Approve button and it throws above error.
The previous steps are as follows:
1. "Impersonate a user (ABC approver)" (this user is created using create user step and have added the approver_user role)
2. "Record query" with below criteria
Approver = ABC Approver
and Approving = 981bbacd872XX710177a840XXXb3522
and State = Requested
3. "Open an Existing Record" which basically opens the above record
4. Click a UI Action.
and then error.
Thanks
Johnny
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
@Mark Roethof @Ankur Bawiskar any idea?
Johnny
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
looks straight forward thing but not sure why it's throwing error
Did you notice any pattern during the ATF failure?
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
No, couldnt find any issue as to why it fails.
Johnny
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday - last edited yesterday
Hi @JohnnySnow
On UI Action , "Client" Checkbox is not checked. Thats why g_form is throwing error.
Fix: Check the "Client" Checkbox in UI action. Issue will be resolved.
