How to test 'Discuss' UI Action in ATF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 11:49 AM
Hi everyone,
I'm trying to test the visibility and availability of the "Discuss" button that appears on the Interaction form using ATF (Automated Test Framework). The test scenario is simple as I simply need to click on it, initiate a 'discussion' and submit a comment.
However, I ran into some challenges:
The "Discuss" button does not exist as a standard UI Action (sys_ui_action) — it seems to be rendered dynamically.
The HTML shows it as a <button id="create_collab_chat">Discuss</button>, which appears to be part of the Connect Chat / Collaboration Sidebar.
Since it's a client-side DOM element, I considered using a custom client-side test step to validate its visibility. However, based on ServiceNow’s official documentation, custom ATF steps can only be server-side, which means testing UI components like this is unsupported.
So my questions are:
Has anyone successfully tested or validated the "Discuss" button (or similar UI-only buttons) via ATF?
Is there any supported way to check the presence or visibility of dynamic UI elements in ATF?
Would the only option here be a manual test case, or are there any workarounds (official or clever) that worked for your team?
Thanks!
- Labels:
-
Automated Test Framework