You need to sign in to do that
Don't have an account?
M Rahman
Apex Class Run as another user
Hi
I'm trying to setup some test data for functional testing using Apex. The code needs to be run as with another user. Do you have any suggestion on this? I've tried System.runAs which cannot be used as the data setup class is not a test class.
I'm trying to setup some test data for functional testing using Apex. The code needs to be run as with another user. Do you have any suggestion on this? I've tried System.runAs which cannot be used as the data setup class is not a test class.
Raj Vakati
I dnt think so you can able to run it as other user in classes ..