You need to sign in to do that
Don't have an account?
Muhammad Jawwad 16
How do I write a test class for scheduler class having a flow?
public with sharing class ScheduleMyFlow implements Schedulable { public void execute(SchedulableContext sc) { // calling a flow new Flow.Interview.MyFlow(new Map<String,Object>()).start(); } }
You cannot write test class for schedule flow. Check below limitation and vote for this feature.
https://ideas.salesforce.com/s/idea/a0B8W00000GdZFoUAN/possibility-to-write-test-class-for-a-autolaunched-flow-with-a-schedule-trigger
Please mark as Best Answer if above information was helpful.
Thanks,