CSA · Question #85
When testing a catalog item, having a manager approval flows, which of these best practices would you follow? (Choose three.)
The correct answer is D. Make sure the requester's user record has a manager specified. E. Create and select your Testing Update Set, before starting the test cases. F. Use your Admin account, so you can approve the items quickly.. When testing a catalog item with manager approval flows, best practices include ensuring the requester has a defined manager, using a dedicated testing update set, and using an admin account for efficient approvals.
Question
When testing a catalog item, having a manager approval flows, which of these best practices would you follow? (Choose three.)
Options
- AMake sure the latest flows are activated.
- BUse the instance Incognito setting to quickly toggle between requester and approver.
- CImpersonate the requester to ensure the form works.
- DMake sure the requester's user record has a manager specified.
- ECreate and select your Testing Update Set, before starting the test cases.
- FUse your Admin account, so you can approve the items quickly.
How the community answered
(47 responses)- A15% (7)
- B6% (3)
- C2% (1)
- D77% (36)
Why each option
When testing a catalog item with manager approval flows, best practices include ensuring the requester has a defined manager, using a dedicated testing update set, and using an admin account for efficient approvals.
While ensuring the latest flows are activated is a prerequisite for any testing, it's not a specific best practice unique to the execution of testing manager approval flows.
ServiceNow's impersonation feature is the correct way to test as different users, not using browser incognito mode which requires separate logins.
Impersonating the requester primarily verifies the form submission itself, but it does not directly test the manager approval flow or the manager's ability to approve.
Manager approval flows rely on the `manager` field in the user record to correctly route approvals. If the requester's user record does not have a manager specified, the approval flow will fail or route incorrectly, making this crucial for testing.
Creating and selecting a dedicated Testing Update Set before beginning test cases ensures that any configuration changes made during testing are captured in an isolated set. This allows for easy rollback or discarding of test data without affecting production or other development work.
Using an Admin account (or an account with the `approver_user` role) allows for quickly approving items, streamlining the testing process by eliminating the need to log in as different users for approvals. This accelerates the validation of the approval logic within the flow.
Concept tested: Catalog item testing best practices
Source: https://docs.servicenow.com/bundle/utah-platform-administration/page/administer/update-sets/concept/c_UpdateSets.html
Topics
Community Discussion
No community discussion yet for this question.