Group approval ATF Step

jitusingh
Tera Contributor

Hi Everyone,

 

I am stuck at a point where we send group approval . I don't how to send group approval through ATFs.

 

I have a ATF on Business application , steps are as follows:-

1. Create and impersonate a user 

2. Record insert -cmdb_ci_busapp

3. Open an catalog item

4. Fill the mandatory fields 

5. Submit the catalog item

6. record query action to query the requested item

7. Record query action to check the sysapproval_group , where parent = step6 and approval=requested 

There my step 7 is failing I don't know how to send approval to the group.


1 REPLY 1

Community Alums
Not applicable

Hi @jitusingh ,

 There's no OOB ATF Test Step for this.

There's a few options you can use:

1. Use a 'Run Server Side Script' step to query the sysapproval_approver table where approval for is the REQ and state is requested and return one of the approval records (and therefore the approver) to impersonate. If this is something that will be useful for other ATFs you can create this as a Test Step. Refer to https://community.servicenow.com/community?id=community_question&sys_id=9526718c1b836450ed6c9979b04b...

2. Use a 'Create User' step to create a user called "Group Approver" or similar, add the user to the XYZ group, then impersonate that user and approve similar to how you have done for the manager approval. Refer to https://community.servicenow.com/community?id=community_question&sys_id=f497585ddb7bc4185ed4a851ca96...