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
TechiesTechies 

Reg Trigger Code Coverage

HI,

  I wrote a trigger on case object . In that I am having a custom formula filed which caliculates the case age.

i wrote the next logic based on the case age field when the age is 22 hrs. So when the age is 22 hrs i am making a boolean value as true then process the rest of the logic.. but i can't set the age to 22 na..... So how to achieve my code coverage.  please give me an ides... Thank ful to you

 

 

Regards,

 

Kiran

Best Answer chosen by Admin (Salesforce Developers) 
TechiesTechies

hmm i got this by using isRunningTest  method....