- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2020 06:10 AM
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.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2020 07:05 PM
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."
Kindly mark my answer as Correct and Helpful based on the Impact.
Regards,
Alok

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2020 11:48 AM
Hi Anthony,
Is it occurring every time you run the test or it just occurred once?
I believe you tried to or Impersonated other user in different tab and this error came up. If this was the case, then it's normal behavior of ATF. You should not impersonate or perform any activities when ATF is running. If you impersonate in parallel then the impersonation via ATF will end and this will result an error.
Kindly mark my answer as Correct and helpful based on the Impact.
Regards,
Alok
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2020 12:03 PM
I have ran the test multiple times as different users, and have ran into the error any time I use a user that does not have the 'snc_internal' role.
I haven't been doing anything else in any other tab while the tests have been running. Just sitting and watching the client test runner fail. None of the users I am using in the test steps have been logged into the system either.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-15-2020 07:05 PM
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."
Kindly mark my answer as Correct and Helpful based on the Impact.
Regards,
Alok
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2020 06:21 AM
Ah, I see. We are currently on London, and planning to upgrade to New York by March.
Thank you, I had opened a ticket with ServiceNow regarding this issue months ago... I wish they had just let me know that.