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
Lucky29Lucky29 

How to write test class for visual flow????

HI,
I have created a flow and to customize the flow ,i have created a vf page with the controller. So can anyone tell me that how to write a test class to call the flow ...?
Peter_sfdcPeter_sfdc
On one very basic level, it is not required. So I suspect many won't. 

As to your point, though, "how"? 

If you were to take your project to this degree of completeness (and why wouldn't you?), you would write it in pretty much the same way you would write a trigger: 
  1. Set up some data.
  2. Execute the logic that exercises the logic you create.
  3. Test your data using System.assert... methods to verify that your test case has the expected result.