Skip to main content
13 events
when toggle format what by license comment
Oct 8, 2018 at 19:42 comment added David Cheng @RajaVivekanandhan We have a very similar issue, do you have a Known Issue link or some other ID for this defect so I can mention it in my own case with Salesforce? Thanks
Oct 5, 2018 at 15:54 vote accept Raja Vivekanandhan
Oct 5, 2018 at 15:54 answer added Raja Vivekanandhan timeline score: 2
Oct 5, 2018 at 15:45 comment added Raja Vivekanandhan Salesforce R& D confirmed it as winter defect. They are applying patch on Oct 9th in winter sandboxes.
Sep 26, 2018 at 16:44 comment added Raja Vivekanandhan Removed seeAllData , and created a mock community user through setup and ran the test case. The Test case locked the Org and not able to save any Apex class . Working with Salesforce
Sep 26, 2018 at 14:59 comment added Raja Vivekanandhan @ShaneSteinfeld , Anonymous script could not be run for community user. System.runAs could be run only in Apex/Test Apex. That was the error I received. @Dave/Raul I agree with you seeAllData is not best practice. I will update the code shortly and provide the latest code.
Sep 26, 2018 at 14:17 history edited Raja Vivekanandhan CC BY-SA 4.0
deleted 11 characters in body
Sep 26, 2018 at 14:11 comment added Shane Steinfeld I'm curious to see if you get different results running this as an anonymous apex script instead of as a test class. I'm sure you'll still see the performance issue since you're seeing it outside of test context, but I don't know whether there's anything happening behind the scenes that would make a test class run with a lower priority. Let's make sure we're getting accurate numbers.
Sep 26, 2018 at 13:13 comment added Dave Humm I really think it would be better to create the community user in the test class as using seeAllData is against best practices.
Sep 26, 2018 at 12:29 comment added Raja Vivekanandhan I set the seeAllData true in order to by-pass recreating community plus user in test class. I created this test class to demostrate the issue that happens in the Apex class.
Sep 26, 2018 at 12:24 comment added Raul could you try without setting seeAllData=true
Sep 26, 2018 at 12:07 history edited RedDevil CC BY-SA 4.0
formatted code
Sep 26, 2018 at 11:52 history asked Raja Vivekanandhan CC BY-SA 4.0