ATF Create User Test Step
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2019 05:11 AM
I want to use "Create User" test step instead of "Impersonate". But every time I add the step to a new test I have to configure the new user by adding all the groups and roles. I have users that need to run tests that have 60+ roles. Adding those roles to the test step every time is a pain. Is there a way to configure the test step once, and then keep re-using it? I wanted to copy "Create User" test step configuration to a new test step and add users into javascript, but not able to copy and for some reason "Create User" test step only has the description script and doesn't have execution script, so can't duplicated it. With "Impersonate" I had to create a fake user and configure it only once, and then reuse it for all tests. I wan't to be able to do the same with Create User.
Thank you!
- Labels:
-
Automated Test Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2019 12:26 AM
Hi Sergey ,
You can create a Custom step configuration which will create a custom reusable ATF step .
Please refer the below link it will solve your query
https://community.servicenow.com/community?id=community_blog&sys_id=398d6669dbd0dbc01dcaf3231f9619d2
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks and Regards,
Amit Gujarathi
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2019 05:42 AM
I wanted to create a custom step that would create a user with groups and roles assigned. So, I went to the Step Configuration to see how Create User test step is built, so I could copy it and modify it slightly. Oddly, when I open Create User step I can only see the Description script. I cannot see the execution script. Do you know if there is a way to see the execution script for Create User step?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2023 06:27 AM
This only points to a general "Create Application" app. How about a How-to-step-by-step? Your answer assumes knowledge and doesn't lead us to a specific answer to a specific question. If we could understand the article, we'd probably be able to answer our own questions. Please try again.