You need to sign in to do that
Don't have an account?
Dinesh123
Running All test classes together
Hi I am facing a issue when I run all test cases together I am getting some error like unable to lock the row and those test classes are failing. However when I run then alone or single then they pass. Will this be a problem when we deploy to prod if all dont pass togehter? If so can some one guide how to overcome this scenario?
Here is a small article on sharing model to avoid this granular locking
Please check below two more post for more detail:-
https://help.salesforce.com/apex/HTViewSolution?urlname=How-can-I-avoid-getting-lock-errors-in-my-organization-1327109108393&language=en_US (https://help.salesforce.com/apex/HTViewSolution?urlname=How-can-I-avoid-getting-lock-errors-in-my-organization-1327109108393&language=en_US)
https://developer.salesforce.com/blogs/engineering/2013/01/reducing-lock-contention-by-avoiding-account-data-skews.html
On Apex Test Execution page click options and tick Disable Parallel Apex Testing. Then the testing will take longer but you won't get error
Please let us know if this will help you.
Thanks,
Amit Chaudhary
All Answers
I am getting the same error in our sandbox. let me know if you found the solution.
Thanks,
Vijay
Here is a small article on sharing model to avoid this granular locking
Please check below two more post for more detail:-
https://help.salesforce.com/apex/HTViewSolution?urlname=How-can-I-avoid-getting-lock-errors-in-my-organization-1327109108393&language=en_US (https://help.salesforce.com/apex/HTViewSolution?urlname=How-can-I-avoid-getting-lock-errors-in-my-organization-1327109108393&language=en_US)
https://developer.salesforce.com/blogs/engineering/2013/01/reducing-lock-contention-by-avoiding-account-data-skews.html
On Apex Test Execution page click options and tick Disable Parallel Apex Testing. Then the testing will take longer but you won't get error
Please let us know if this will help you.
Thanks,
Amit Chaudhary