Testing Lightning Flow

4068fcaf4bd4822746cc4537a422eced?s=47 Shun Kosaka
October 30, 2018

Testing Lightning Flow

2018/10/02
@ Tokyo Salesforce Developer Group
Lightning FlowのApexテストとカバレッジについて

4068fcaf4bd4822746cc4537a422eced?s=128

Shun Kosaka

October 30, 2018
Tweet

Transcript

  1. Lightning FlowΛςετ͢Δ 2018/10/30 Tokyo Salesforce Developer Group Meetup #19 Shun

    Kosaka | Accenture Japan | @shunkosa
  2. Lightning Flow in Winter ‘19 • ϓϩηε΍ϑϩʔΛ༗ޮͳ··σϓϩΠͰ͖Δ Ŗ CIͱͷ਌࿨ੑ Ŗ

    ΧόϨοδ͕75%Ҏ্ඞཁ Ŗ ର৅͸ϓϩηεͱࣗಈ࣮ߦϑϩʔ • ϓϩηε΍ϑϩʔͷΧόϨοδΛ֬ೝͰ͖Δ
  3. Lightning FlowͷΧόϨοδ • 'MPX5FTU$PWFSBHF - "QFYςετϝιου୯ҐͰΧόʔ͞ΕΔϑϩʔཁૉͷׂ߹ Χόʔ͞Εͨཁૉ Χόʔ͞Ε͍ͯͳ͍ཁૉ ΧόϨοδ͸ 

  4. Lightning Flowͷςετίʔυ • ϑϩʔ @isTest static void testFlow(){ Map<String, Object>

    flowInputs = new Map<String, Object>{‘AccountId’ => myAcc}; Flow.Interview.calculator myFlow = new Flow.Interview.calculator(flowInputs); myFlow.start(); System.assertEquals(myFlow.Discount, 10); } • ϓϩηε - τϦΨʔͱಉ༷
  5. Lightning Flowͷ͜Ε͔Β • AppExchangeʹFlow Solutions (Winter ‘19) • Flow Builder͕୤FLASH

    (Spring ‘19) • Apexͱ࢖͍΍͘͢ͳͬͨLightning Flow͕ೖΓަ͡Δ - ඞཁʹԠͯ͡Lightning Flow΋ςετΛॻ͜͏ʂ
  6. ࢀߟϦϯΫ • Winter’19 ϦϦʔεϊʔτ : Lightningϑϩʔ - https://releasenotes.docs.salesforce.com/ja- jp/winter19/release-notes/rn_forcecom_flow.htm •

    Apex։ൃऀΨΠυ : Flow.InterviewΫϥε - https://developer.salesforce.com/docs/atlas.ja- jp.apexcode.meta/apexcode/flow_interview_class.htm • Tooling API։ൃऀΨΠυ : FlowTestCoverage - https://developer.salesforce.com/docs/atlas.en- us.api_tooling.meta/api_tooling/tooling_api_objects_flowtestcov erage.htm