CAD · Question #259
Which ATF test step is used to set up a specific user profile for testing purposes?
The correct answer is A. Impersonation. The 'Impersonation' test step in Automated Test Framework (ATF) allows a test to run subsequent steps as a specific user, simulating that user's roles, groups, and permissions. This is essential for testing role-based behavior and access control. 'Create a user' (C) creates a…
Question
Which ATF test step is used to set up a specific user profile for testing purposes?
Options
- AImpersonation
- BCreate a role
- CCreate a user
- DCreate a group
How the community answered
(27 responses)- A89% (24)
- C7% (2)
- D4% (1)
Explanation
The 'Impersonation' test step in Automated Test Framework (ATF) allows a test to run subsequent steps as a specific user, simulating that user's roles, groups, and permissions. This is essential for testing role-based behavior and access control. 'Create a user' (C) creates a new user record but does not switch the test execution context to that user. 'Create a role' (B) and 'Create a group' (D) are setup steps for permission structures, not for adopting a user's profile during test execution.
Topics
Community Discussion
No community discussion yet for this question.