You need to sign in to do that
Don't have an account?

Running Apex test method and associatd Trigger as another user
Hello,
I have developed a Apex test case that tests a trigger.
This test case needs to run as another user whose role is different from "System Administrator".
How would I do that? Does Apex have the equivalent of runAs()?
Andi Giri
I have developed a Apex test case that tests a trigger.
This test case needs to run as another user whose role is different from "System Administrator".
How would I do that? Does Apex have the equivalent of runAs()?
Andi Giri

Was there ever a solution for this? I'm running into similar problems.

Here is the documentation Introduction to Apex Code Test Methods