Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Testing Lightning Flow

Shun Kosaka
October 30, 2018

Testing Lightning Flow

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

Shun Kosaka

October 30, 2018
Tweet

More Decks by Shun Kosaka

Other Decks in Technology

Transcript

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

    ΧόϨοδ͕75%Ҏ্ඞཁ Ŗ ର৅͸ϓϩηεͱࣗಈ࣮ߦϑϩʔ • ϓϩηε΍ϑϩʔͷΧόϨοδΛ֬ೝͰ͖Δ
  2. 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); } • ϓϩηε - τϦΨʔͱಉ༷
  3. Lightning Flowͷ͜Ε͔Β • AppExchangeʹFlow Solutions (Winter ‘19) • Flow Builder͕୤FLASH

    (Spring ‘19) • Apexͱ࢖͍΍͘͢ͳͬͨLightning Flow͕ೖΓަ͡Δ - ඞཁʹԠͯ͡Lightning Flow΋ςετΛॻ͜͏ʂ
  4. ࢀߟϦϯΫ • 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