Error unimpersonating users during ATF

Anthony10
Giga Contributor

I recently began creating automated tests to validate some of the functionality of our Service Portal. I'm running into an error when the tests try to complete (Regardless of whether the steps were successful or not), shown in the attached screenshot.

It seems that ATF test runner isn't able to unimpersonate users that don't have the 'snc_internal' role. In order impersonate another (or myself) I'm forced to log out and log back in. Again, this only happens when I try to impersonate users without the 'snc_internal' (only 'snc_external') role through ATF. Impersonating one of these users manually causes no problem when I try to then impersonate someone else.

1 ACCEPTED SOLUTION

Are you in London? Impersonation of sn_external users in ATF is support from the Madrid release. Please find below snipped from the docs and it's link:

"Server test steps support impersonation of users with the snc_external role, which allows testing users who do not have login access."

https://docs.servicenow.com/bundle/madrid-release-notes/page/release-notes/application-development/a...

Kindly mark my answer as Correct and Helpful based on the Impact.

Regards,

Alok

View solution in original post

10 REPLIES 10

Thanks for your reply, Anthony!