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
Sangeetha TSangeetha T 

URGENT. Need help with Apex Test Class - Test Debug logs

Hi All

While inserting test records through DATABASE.INSERT in test class. I queried the inserted TEST records through System.Debug, To my surprise I could see that the field value has got changed. 
Henceforth it is not passing to the another criteria to code coverage 

for eg I inserted 
F1 = "aqsh"
F2 = "assigned"

while querying the records look like this
F1 ="aqsh"
F2 = "Open"

PLEASE HELP
sfdcMonkey.comsfdcMonkey.com
maybe there is some trigger or process is active which change the value for F2 field while inserting.
check object trigger and process
Thanks 
Tiago Armando CoelhoTiago Armando Coelho
Hi Sangeetha

It seems that you have some automated process changing your value to Open.
Please check the Process Builder, Workflow fields updates and last triggers,

Kind regards,