Activity Forums Salesforce® Discussions System.runAs and runAs

  • Piyush

    Member
    October 3, 2019 at 4:06 AM

    Hi Naresh,

    System .runAs: It enables us to Changes the current user to the specified user. We use This Method when we need to execute the test as a context of a current user.

    runAs: The runAs method ignores user license limits. You can create new users with runAs even if your organization has no additional user licenses.

Log In to reply.