You need to sign in to do that
Don't have an account?

Using Formula Fields in Test Classes
I am writing a test class that tests for a class that checks the values of two formula fields and updates other fields. I am tryng to use thse fields in the test class, however, there values seem to be null. It does not seem like these formula fields are being updated. The genesis__Total_Score__c and Annualized_Recurring_Revenue_Run_Rate__c field are the formula fields and their actual values are null, however all the required fields needed for their formulas have values.

Any help would be great.
Thanksss
Any help would be great.
Thanksss
Please post the code next time, rather than an image. :)
In your code, you need to query your record again after you have done your DML operatiions. Then do your asserts from that queried record. Like this: