You need to sign in to do that
Don't have an account?
saraha@groupesci.com
How can we unit test the controller for a Read-Only page?
Hello All,
So I have a nice read only page that gets tons of records from the controller. The trouble is, when I write a unit test for the controller it fails because I get more than 50k records!
Any suggestions?
Thanks!
You need to write your test in a manner that scopes it to exclude existing org data. Your test should create the data it needs.
We're working on a mechanism to allow a developer to forcibly constrain the scope of a test but for now you would need to construct your test to be sure it was exclusive so you don't hit these limits.
All Answers
You need to write your test in a manner that scopes it to exclude existing org data. Your test should create the data it needs.
We're working on a mechanism to allow a developer to forcibly constrain the scope of a test but for now you would need to construct your test to be sure it was exclusive so you don't hit these limits.
Ok makes sense. Thanks for the quick reply.