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
krixkrix 

Trigger test problem

I created a before insert trigger on the case, it querying record types. The test is OK, the trigger in the test method can querying the record types.  / @IsTest(SeeAllData=true) public static void test() {...} /

 

There are another triggers, what create cases, these triggers are not mine, i can't edit them. These tests not use sealldata=true. I can't deploy my changesets, because this test is failed.

 

What should we do?

 

Thanx, Krix

Devendra@SFDCDevendra@SFDC
Hi,

You need to modify those test methods.

Is there a reason to add (seeAllData = true) for new test method, because of which all other test methods are also failing??

Thanks,
Devendra