ATF - Impersonating the Technical Owner from a Catalog item record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi, I'm trying to enhance an ATF test not hard coding the impersonation of the technical owner for a Catalog Item, since this may change and make the test fail. At the moment I'm impersonating a specific user.
Basically I want to pick the technical owner field value: 'owner' from a record in the sc_cat_item table and impersonate it. I have tried several server side script steps I found in the community and other sources but nothing seems to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi @luiscarrion
That’s not possible because it is ATF. We need to define which user should be used to run the test case, and we also need to inform the system which user is being impersonated.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago - last edited 2 hours ago
Hi @luiscarrion
Refer:
KB0782883 ATF Failure: Error Impersonating the User
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti