ATF: "Request More Information" UI Action Sends Email in UI but Not During ATF Execution

Sachin G K1
Kilo Sage

Hi All,

 

I’m currently working on an Automated Test Framework (ATF) test for a Policy Exception record. When a user clicks the "Request More Information" UI action manually, an email notification is correctly triggered and sent to the requester.

 

However, when the same action is performed as part of an ATF test, no email record is created in the sys_email table, which subsequently causes the next test step—validating the outbound email—to fail.

 

SachinGK1_0-1745914865555.png

Requesting for help here.

 

Thanks in Advance,

Sachin

16 REPLIES 16

Notification triggers as follow:
when you click on ui action "Request More info", this ui action changes the substate to "Awaiting requester information".
And notification gets triggered when substate changes to "Awaiting requester information" and state is "Analyze".

Actually clicking the ui action in atf is changing the substate to "Awaiting requester information", but its not triggering notification in atf. 

Myquery: is there is gap between ui action clicking in atf and notification is not getting triggered when state changes to "Awaiting requester information". do i need to do anything from server script.

Akiladevi Raje1
Giga Guru

@Sachin G K1 ,

 

Add Run server script before record Query step and add the below code in run server script

(function(outputs, steps, params, stepResult, assertEqual) {

    // add test script here

    var counter = 0;

    var timeout = 60; // this is set to 1 minute. You can change the time according to your requirement. Time is in seconds.

    while (counter <= timeout){

        counter++;

        sn_atf.AutomatedTestingFramework.waitOneSecond();

    }

})(outputs, steps, params, stepResult, assertEqual);
 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Akiladevi Rajendran