- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2018 11:04 AM
I am getting error "Uncaught ReferenceError: current is not defined" while running ATF test case.
What modification do I need to do in below UI action code to avoid this?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2018 11:07 AM
That error is coming from a UI action on the form and doesn't have anything to do with ATF. You'll see the same error when interacting with that form normally. Your UI action is a client-side UI action but it is calling 'current' (which is undefined). In order to resolve the issue you'll need to construct your UI action as shown in this SNGuru article.
https://www.servicenowguru.com/system-ui/ui-actions-system-ui/client-server-code-ui-action/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2018 11:07 AM
That error is coming from a UI action on the form and doesn't have anything to do with ATF. You'll see the same error when interacting with that form normally. Your UI action is a client-side UI action but it is calling 'current' (which is undefined). In order to resolve the issue you'll need to construct your UI action as shown in this SNGuru article.
https://www.servicenowguru.com/system-ui/ui-actions-system-ui/client-server-code-ui-action/