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
Prashant OjhaPrashant Ojha 

how to optimize the test class?

Hi,
How can we use different test class method for the corresponding apex class method?
Suraj Tripathi 47Suraj Tripathi 47
Hi Prashant,

Testing is an important part of SDLC. So, before deploying our code to production environment, Salesforce requires at least 75% of your code to be covered by our test classes whic. Salesforce has done that to make sure that our code doesn’t break in any situation in Production. Today we’ll see how we write the test class with example in Salesforce. To know about how to optimize test class follow below link.


https://www.sfdcpoint.com/salesforce/test-class-with-example-salesforce/ 


If you find your Solution then mark this as the best answer.

Thank you!
Regards,
Suraj Tripathi  
AbhinavAbhinav (Salesforce Developers) 
I did not get your question. 
Is it something you want call different test class method fmom other?