- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2024 03:46 AM
I have to write a test step in ATF when I submit the catalog item it will go to an assignment group, so I need to impersonate any one of the users in the group hence I can't use manual impersonation of the user to avoid warnings.
Please suggest me the solution
Thank you
Solved! Go to Solution.
- 1,512 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2024 03:50 AM
Hi @Anantha27
ATF is like which mimic the manual work and you can use the steps.
In ATF , you can use the step Impersonate and then you can set value of user by which you user you want to impersoante.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
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/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2024 12:27 AM
Hi @Anantha27 ,
You can use the following approach:
Create a Test Step to Impersonate the User: In your ATF test, add a step to impersonate the user in the assignment group.This step will use the ATF Impersonate User feature to avoid warnings.
Use the Impersonate User Step:
- Go to the ATF test where you want to add the impersonation.
- Add a new test step and select "Impersonate User".
- Choose the user you want to impersonate from the assignment group.
Create a Catalog Item Submission Step:
- Add another test step for "Submit Catalog Item".
- Configure it to submit the specific catalog item you're testing.
Verification Step: After submitting the catalog item, add a verification step to check that the item is assigned to the correct assignment group.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2024 12:33 AM
Use Impersonation step in ATF after submitting the catalog item and then open existing record.
thank you
if you find my answer helpful please accept my solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2024 12:50 AM
Hi @Anantha2727,
Perhaps not, but there You have the opportunity to employ a server-side script to impersonate a user by dynamically calling a user from the assignment group for the test.
If it works, please let me know,
Should my answer prove to be helpful, kindly mark it as such by clicking "Accept as Solution" and "Helpful."
regards,
Manikanta. Kota
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2024 01:18 AM
Hi @Anantha27 ,
you can use the following approach:
Create a Test Step to Impersonate the User:
In your ATF test, add a step to impersonate the user in the assignment group. This step will use the ATF Impersonate User feature to avoid warnings.
Use the Impersonate User Step:
1.Go to the ATF test where you want to add the impersonation.
Add a new test step and select "Impersonate User".
Choose the user you want to impersonate from the assignment group.
2.Create a Catalog Item Submission Step:
Add another test step for "Submit Catalog Item".
Configure it to submit the specific catalog item you're testing.
3.Verification Step: After submitting the catalog item, add a verification step to check that the item is assigned to the correct assignment group.
Regards,
Sai Krishna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2024 03:50 AM
Hi @Anantha27
ATF is like which mimic the manual work and you can use the steps.
In ATF , you can use the step Impersonate and then you can set value of user by which you user you want to impersoante.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
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/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2024 04:00 AM
Hi thanks for replying,
If I use direct user, it is showing warnings and also if user has not existed in the group after sometimes that process will not move forward so I am trying make a solution like We just need to pick random user in the group to impersonate. Is it possible in this way to create a step on ATF..?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2024 04:05 AM
Hi @Anantha27
There is no restrictions for impersonation of any user ( A non admin user cant impersonate a admin user). Random user impersonation is not possible in ATF.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
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/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2024 04:26 AM
Use create a user step and add it to the required group.
Regards
Shaqeel
***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.
***********************************************************************************************************************
Regards
Shaqeel