+ Start a Discussion

Reg Trigger Code Coverage


  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






Best Answer chosen by Admin (Salesforce Developers) 

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