We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Create reusable testcase for manager approval in Employee Center using ATF

akhila91ar
Tera Contributor

I'm trying to create a reusable test for manager approval in Employee Center. Steps I have included are:

  1. Impersonate with reusable input approver
  2. record query on sysapproval_approver table with conditions state is requested, Approver is reusable input->approver and approval for Reusable inputs->record id
  3. Open Service Portal page with portal as Employee Center and query parameters as ID= approval, table=sysapproval_approver and sys_id= Step 2-> record query

Above steps help open the approval record but not sure how to Approve the request.

I tried using Click Component(custom UI) test step but cannot retrieve components as this is a reusable test (worked fine in regular tests though). Added "approve" on Click a UI Action(SP) step and that didn't work either.

 

Is there a way approvals can be done on portal using a reusable tests? Added screenshots from existing reusable test.

akhila91ar_0-1777494530623.pngakhila91ar_1-1777494542691.pngakhila91ar_2-1777494568139.png

Any help is appreciated. TIA

 

1 REPLY 1

Sardash
Tera Guru

@akhila91ar  -

This is a ServiceNow ATF limitation. Reusable tests cannot interact with UI Builder components including 'Approve/Reject buttons' on Employee Center. 
-----------------------------------------------------------------------------------------------------------------------------------------------
If my response helped, please mark it by selecting "Accept as Solution" and " Helpful."