ATF - This step failed because a client-side Javascript error was detected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-23-2018 08:46 AM
All,
I'm trying to design a test to test our functionality of cancelling a change request. In one specific part of this test, I ask the ATF test to open a form, press the "Cancel" button (and expect submission to be blocked), and then to confirm that "Close Notes" are mandatory. The test almost always fails on clicking the UI action with the following message:
This step failed because a client-side Javascript error was detected on the page being tested. See the logs and screenshots on the test result for details. |
When I look at the screenshot captured on failure, it shows the expected error message listing the mandatory fields that are not filled in. I followed advice from the following two links to do more debugging:
https://hi.service-now.com/kb_view.do?sysparm_article=KB0623238
https://community.servicenow.com/community?id=community_question&sys_id=50afb62ddb58dbc01dcaf3231f961947
I was given the problem and directed to a script:
Uncaught TypeError: Cannot read property 'totalRows' of null
/scripts/js_includes_list_v3_form.jsx?v=06-21-2018_1724&lp=Sun_Jul_15_21_22_12_PDT_2018&c=17_236
When I searched that script for instances where 'totalRows' was a property being read from an object, I found a potential 16 offenders that all live in one of these scripts:
/scripts/app.snList/related_list/directive.snRelatedList.js
/scripts/classes/doctype/GlideList2.js
/scripts/classes/GlideWidgetVCR.js
/scripts/classes/GlideWidgetHideOnEmpty.js
Is there anything I can do from here?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-23-2018 07:30 PM
Can you configure this table to use list v2 instead of list v3 and open a HI Ticket as you can't control that code?