function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
asgiriasgiri 

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
waylonatcimwaylonatcim
Was there ever a solution for this?  I'm running into similar problems.
okaylah52okaylah52
Here is the documentation Introduction to Apex Code Test Methods
Message Edited by okaylah52 on 01-21-2009 11:24 PM