The CreatorCon Call for Content is officially open! Get started here.

how do I Impersonate using script in ATF? Service-Now Orlando release

Chandan7
Kilo Contributor

Why do the step config  'Impersonate' not work in ATF in Orlando release. I tried in some of the test, but the Client Test Runner's page become unresponsive during the run. Also, I have noticed when I use the step config 'Impersonate', there is a warning saying- Impersonating an existing user may cause unexpected behavior for this test. Avoid potential issues by adding a 'Create a User' step instead. If someone is not supposed to use this step config, then why do it exist in the list.
'Create a user' is not so flexible, while working on a instance where there are lot of customizations. 

Can somebody help me please. Its urgent. 

Also, how do I Impersonate using script in ATF?

13 REPLIES 13

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

that should work as expected; if not then raise HI ticket.

Also it is recommended to create new user and then impersonate that for continuing your test case steps; In that way you will be testing it with actual user rather than impersonating

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Community Alums
Not applicable

Hi,

My instance is in Orlando version but still I'm unable to add Roles/Groups to the user. However this functionality is working fine in my personal instance(Paris).Even in Impersonate User step can't select any user. Do we need to enable any property in this case.

find_real_file.png

Hi,

I believe it is not proper to ask a secondary question on the same community post as it leads to confusion to future readers. It's better to create a second post so there's a separation in the questions being asked.

I would encourage to post the link here once created

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Community Alums
Not applicable

Thanks Ankur, Created a new thread. https://community.servicenow.com/community?id=community_question&sys_id=a10fba53db1b58547d3e02d5ca9619bd