Which statement is true about running tests under alternate user identities in tests?

Prepare for the ServiceNow CAD Exam with comprehensive flashcards and multiple-choice questions. Each query offers hints and explanations. Ensure your success on the exam!

Multiple Choice

Which statement is true about running tests under alternate user identities in tests?

Explanation:
To test actions under a different user, you need to establish a real test user and then switch the session to that user. In ATF this is done by first using a Create User step to set up the account, followed by an Impersonate step to run subsequent steps as that user. This two-step sequence is necessary because impersonation must reference an existing user, so it can’t be accomplished in a single step. ATF provides these steps natively, so there’s no need for external tooling.

To test actions under a different user, you need to establish a real test user and then switch the session to that user. In ATF this is done by first using a Create User step to set up the account, followed by an Impersonate step to run subsequent steps as that user. This two-step sequence is necessary because impersonation must reference an existing user, so it can’t be accomplished in a single step. ATF provides these steps natively, so there’s no need for external tooling.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy