CAD · Question #73
Which ATF Test step allows you to create a user with specified roles and groups for the test?
The correct answer is A. Create a user. In ServiceNow's Automated Test Framework (ATF), the 'Create a user' test step generates a temporary test user with a specified set of roles and group memberships scoped to that test run. This allows tests to simulate access scenarios without relying on pre-existing user accounts.
Question
Which ATF Test step allows you to create a user with specified roles and groups for the test?
Options
- ACreate a user
- BCreate a role
- CCreate a group
- DImpersonation
How the community answered
(38 responses)- A87% (33)
- B8% (3)
- C3% (1)
- D3% (1)
Explanation
In ServiceNow's Automated Test Framework (ATF), the 'Create a user' test step generates a temporary test user with a specified set of roles and group memberships scoped to that test run. This allows tests to simulate access scenarios without relying on pre-existing user accounts. 'Impersonation' (Choice D) switches context to an existing user but does not create one. There are no standalone 'Create a role' or 'Create a group' ATF test steps for this purpose.
Topics
Community Discussion
No community discussion yet for this question.