You need to sign in to do that
Don't have an account?
Nishad Basha
How to write the Test class for multiple users?
How to write the test class for multiple users.please give me the example of above scenario.
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
The system method runAs enables you to write test methods that change the user context to an existing user or a new user so that the user’s record sharing is enforced. The runAs method doesn’t enforce user permissions or field-level permissions, only record sharing.
You can use runAs only in test methods. The original system context is started again after all runAs test methods complete.
The runAs method ignores user license limits. You can create new users with runAs even if your organization has no additional user licenses
Please let us know if this will help you
Thanks
Amit Chaudhary