Create reusable testcase for manager approval in Employee Center using ATF
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I'm trying to create a reusable test for manager approval in Employee Center. Steps I have included are:
- Impersonate with reusable input approver
- record query on sysapproval_approver table with conditions state is requested, Approver is reusable input->approver and approval for Reusable inputs->record id
- 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.
Any help is appreciated. TIA
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
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."