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
Shruthi GM 4Shruthi GM 4 

There is a process builder written for some pupose.If I deactivate it,a test class runs properly.If the process builder is active then the test class fails!

Only one method fails in the test if the process builder is active.To deploy it to other environments I am dectivating the process builder and then deploying the test class.Is there any other solution for this?

Please help.

Thanks inadvance.
Nupoor SharmaNupoor Sharma
Hi Shrithi, 

a.) There might be a genuine issue. Maybe an additional criteria node is required by the process builder which is causing the exception.
b.) If this is not the case you can use such test data which doesn't trigger that specific process builder.