Loading
Salesforce now sends email only from verified domains. Read More
Get Started with Communications, Media, and Energy & Utilities (CME)...
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Take a Representative Path

          Take a Representative Path

          If a State Model has no alternate states and no transitions with multiple independent rules, you can test it in one pass. For most State Models, you need multiple passes along multiple paths to test all states, rules, and actions.

          To take a representative path through the Report Card State Model:

          1. In Lightning Experience, click the App Launcher App Launcher Icon.
          2. Type report in the Search field and select Report Cards.
          3. Click New.
          4. Specify a Report Card Name. This can include the name of the Contact that has your email.
          5. Verify that the following settings have the listed values:

            Setting

            Value

            State

            Enrolled

            Type

            Student

            Grade

            I

          6. From the Graded Contact drop-down list, select the Contact that has your email.
          7. Click Save.
          8. Verify that Enrolled is the initial state.
            Report card in the Enrolled state.

            Note that states in the "happy path" are displayed in the main flow. Alternate states are available as dropdown options because transitions to them are explicitly defined.

          9. Click the Completed state. Because the Grade value is still I, the State Model should transition to Incomplete.
            Incomplete report card.
          10. Check your email. You should see an email titled Course Incomplete.
          11. Click the Edit icon for the Grade field and change its value to A.
          12. Click the Completed state again. The State Model should transition to Completed.
            Completed report card.
          13. Click the Passed state. The State Model should transition to Passed.
            Passed report card.
          14. Check your email. You should see an email titled Course Completed. The body of the email should list A as the grade.
          15. Click Delete so you can recreate the Report Card and make another test pass using another path through the State Model.
           
          Loading
          Salesforce Help | Article