"Submit Record Producer (SP)” step is failing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I’m trying to automate a Record Producer using ServiceNow Automated Test Framework (ATF), but I’m unable to successfully submit it.
ATF Flow Used
- Open Record Producer (Service Portal)
- Set Variable Values
- Submit Record Producer (Service Portal)
Issue
The “Submit Record Producer (SP)” step is failing, and the Record Producer is not being submitted. As a result, no record is created in the target table, even though all required variables are populated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @susruta
It is an expected behaviour .
Refer: Issue with ATF Test step Submit Record Producer (SP)
Try with this KB's workaround.
refer: KB0996354 ATF: Standard change related record producers failing at submission step
Unfortunately, there is no Out of the box test step configuration that could allows to perform the "Save" action on Standard Change-related Record Producers. The following is a workaround:
- Open 'Submit Record Producer' step config [instance/sys_atf_step_config.do?sys_id=ed59d8e5c332220076173b0ac3d3ae6a]
- In the step execution script, find the line mentioned below (Most probably line# 104):
var actionElement = testFrameWindow.gel(buttonId);- After that line add the following code:
if (!actionElement) {
// try to get save button element
actionElement = testFrameWindow.gel('submit_button_std_chg_new');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
where we can see this script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
what error you are getting?
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
This is the error its showing
"testFrameWindow.gel is not a function"
