What is system.runas () is test class?
Answer / Ram Singh
In a test method, System.RunAs() allows you to run code as another user. This is useful for testing scenarios where you need to simulate the behavior of different users in your org.
| Is This Answer Correct ? | 0 Yes | 0 No |
Name the types of relationship in salesforce
Is salesforce.com is a public cloud or private cloud?
How many ways call controller from visualforce page ?
Will data be lost in a custom field if data type is changed to number from any other data type?
Why Governor Limits are introduced in Salesforce.com?
What are the different types of states in salesforce?
What are setup and non-setup objects in salesforce?
How you will do Mass Insert through trigger?
What are sharing rules? Name what are the types of sharing rules?
What is the difference between a standard controller and a custom controller?
what are future methods and where are they used ?
How can we implement pagination in Visualforce?