Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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

 

0 REPLIES 0