You need to sign in to do that
Don't have an account?
System.runAs() is required to use when we crate user in test class.
Hi,
I created one batch class and sending email to user in finish method. For this I created one test user in in test class.
My Question is ..... Is it required to test in user mode to execute this batch class?
and Is it required to use System.runAs() whenever we are using test user in test class every time? or is there any specific reason to use System.runAs()?
Thanks
Venkat
I created one batch class and sending email to user in finish method. For this I created one test user in in test class.
My Question is ..... Is it required to test in user mode to execute this batch class?
and Is it required to use System.runAs() whenever we are using test user in test class every time? or is there any specific reason to use System.runAs()?
Thanks
Venkat
https://developer.salesforce.com/forums?id=906F000000092AoIAI