"Submit Record Producer (SP)” step is failing

susruta
Tera Contributor

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

  1. Open Record Producer (Service Portal)
  2. Set Variable Values
  3. 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.

4 REPLIES 4

Tanushree Maiti
Kilo Patron

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:

  1. Open 'Submit Record Producer' step config [instance/sys_atf_step_config.do?sys_id=ed59d8e5c332220076173b0ac3d3ae6a]
  2. 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');

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

where we can see this script?

Ankur Bawiskar
Tera Patron

@susruta 

what error you are getting?

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

This is the error its showing 
"testFrameWindow.gel is not a function"