Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

ATF Error

JohnnySnow
Mega Sage

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

 

Thanks
Johnny

Please mark this response as correct or helpful if it assisted you with your question.
4 REPLIES 4

JohnnySnow
Mega Sage

@Mark Roethof  @Ankur Bawiskar  any idea?

Thanks
Johnny

Please mark this response as correct or helpful if it assisted you with your question.

@JohnnySnow 

looks straight forward thing but not sure why it's throwing error

Did you notice any pattern during the ATF failure?

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

No, couldnt find any issue as to why it fails.

Thanks
Johnny

Please mark this response as correct or helpful if it assisted you with your question.

Tanushree Maiti
Kilo Patron

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.

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: