Activity Forums Salesforce® Discussions In Salesforce ,What is the need to use System.runAs() Method in Test Class ?

  • In Salesforce ,What is the need to use System.runAs() Method in Test Class ?

    Posted by Kirandeep on January 23, 2020 at 11:33 am

    In Salesforce ,What is the need to use System.runAs() Method in Test Class ?

    krati replied 4 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • krati

    Member
    January 23, 2020 at 1:19 pm

    System.runAs(), lets the user write their test methods which change that user's context either to an existing user or a new user.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos