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
kumar7kumar7 

Through Test class is it possible to update the record?

Hi all,

Through Test class is it possible to update the record?
if possible please send me a peace of code.

Thanks
kumar
Shailesh DeshpandeShailesh Deshpande
Do you mean, update a record in database? The answer is no. The dml operations that you do in test  class do not affect your actual data.