Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
northernforce#45 フローのテストを実装してみよう
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Yoshi
October 15, 2024
Business
64
0
Share
northernforce#45 フローのテストを実装してみよう
Yoshi
October 15, 2024
More Decks by Yoshi
See All by Yoshi
【付録】AI関連の重要用語集
yoshi17
0
230
【northernforce#54】AIの歴史と仕組みから学ぶAIエージェント入門
yoshi17
0
300
Agentforce Vibesを 使ってみた(N回目)
yoshi17
0
150
Agentic Enterprise時代の到来に備える_GlobalGathering_20251114
yoshi17
0
66
20251028_northernforce52_吉松_Dreamforce2025ふりかえり_.pdf
yoshi17
0
85
【northernforce#51】 Agentforceワークショップ! お土産課題
yoshi17
0
76
【northernforce#51 発表用資料】Agentforceワークショップ!
yoshi17
0
290
Salesforce Summer'25 注目機能紹介
yoshi17
0
95
Salesforce Summer'25 注目機能紹介
yoshi17
0
95
Other Decks in Business
See All in Business
深掘り問いカードを使って問いの手札を増やそう!
kawanotron
0
240
Corporate Story (GA technologies Co., Ltd.)
gatechnologies
0
740
みんなの産育休ガイドブック+《2026年版》(スパイダープラス)
spiderplus_cb
0
140
20260401_UPDATER_companysummary
updater_pr
0
110k
20260331更新_会社説明資料_slideshare_speakerdeck__.pdf
thecoo
0
380
【Progmat】Monthly-ST-Market-Report-2026-Mar.
progmat
0
120
2000年前の「心の整理術」で、ふりかえり後の1アクションを決める!〜ストア哲学で、チームをもっと軽やかに〜
doiko123
0
150
カンパニーデック 2026.04.13
toggletest
0
6.6k
経営学とエンジニアリング、その共通点と活用法 / Commonalities Between Management Science and Engineering, and How to Leverage Them
nrslib
2
1.1k
合同会社DMM.com ヘルスケア本部 採用ピッチ資料
dmm
0
460
税理士法人マネイジブレーン採用のご案内.pdf
yukawamoee
0
2.5k
チームライク会社紹介資料 / Teamlike Introduction
teamlike
0
190
Featured
See All Featured
Fireside Chat
paigeccino
42
3.9k
Leo the Paperboy
mayatellez
6
1.6k
Designing for Timeless Needs
cassininazir
0
190
AI: The stuff that nobody shows you
jnunemaker
PRO
4
520
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.2k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
160
The Cult of Friendly URLs
andyhume
79
6.8k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.5k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
990
Balancing Empowerment & Direction
lara
5
1k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4k
Transcript
フローのテストを実装してみよ う 2024.10.15 吉松 保博
目次 • 自己紹介 • 事前準備 • フローのテストとは何か? • フローのテストの目的 •
フローのテストを実装してみよう ◦ フローを作成 ◦ フローのテストを作成 ◦ フローのテストを実行 • 注意点(制約など) • まとめ
3 自己紹介 Copyright © Kitalive Inc. All Rights Reserved. ▪名前
吉松 保博(よしまつ やすひろ) ▪所属 株式会社キットアライブ 運用保守チーム ▪経歴 システムエンジニア@独立系SI企業 牧場スタッフ@浦河の牧場 システムエンジニア@札幌のリフォーム会社の情報システム部門 システムエンジニア@札幌の医療系SI企業 現職(2018年3月~) ▪社外活動 northernforce コミュニティ運営メンバー プロボノワーク(Salesforceを導入しているNPO団体の機能改善サポート) ▪ストレングスファインダー 慎重さ、内省、責任感、運命思考、学習欲
事前準備 • Trailheadプレイグラウンドから新しい組織を作成 https://trailhead.salesforce.com/ja/content/learn/projects/use-apex-to-automate-bu siness-processes/create-and-test-a-trigger?trail_id=build-apex-coding-skil
本日のテーマ
フローのテストとは何か? • Winter23にてリリースされた新機能 • フローをテストするための宣言的フレームワーク • コードを書かずに自動でテストを行ってくれる
フローのテストの目的 • 管理者の生産性向上 ◦ 開発者がコードを書かなくてよくなる ◦ フローのテストに掛かるコストを下げる(都度作成 →再利用できる) • 早くリリースできるようになる
• フローを変更しやすくなる(≒業務に素早く対応できるシステムを作れる) ◦ 自動テストにより、仕様をテストに組み込める ◦ 業務要件が変わった際に素早く対応できる
ワークショップ
シナリオ • 商談の金額に応じて商談に割引率を設定する ◦ 商談の金額が25万円以上:割引率=20% ◦ 商談の金額が25万円未満:割引率=5%
作成するもの • 商談オブジェクトに割引率項目を作成 ◦ 型:パーセント ◦ API参照名:DiscountPercent • フローを作成 •
テストケースを作成 • フローのテストを作成
フローを作成
テストケースを作成 • テストしたい内容を場合分けする ◦ 実際には複数の要素が関わることが多い ◦ ヌケモレなく正しく場合分けできているかが大事 商談の割引率 商談の金額が25万円以上 20%
商談の金額が25万円未満 5%
フローのテストを作成
フローのテストを作成
フローのテストを作成
フローのテストを作成
フローのテストを作成
フローのテストを作成
テストケースを修正 • 仕様を変更時にはテストケースとフローのテストを修正 商談の割引率 商談の金額が25万円以上 20% 商談の金額が25万円未満 5%→10%
注意点(制約など) • テストの最大数は200件 • レコードトリガーフローのみサポートされる • 削除処理はテストできない • 他のオブジェクトの値を比較できない •
フローのテストを変更セットやデプロイに含めることが可能 • リリース時の自動テストにフローのテストは含まれない
まとめ • フローのテストは発展途中(画面フロー、スケジュールトリガーもお願い) • 複雑な要件ではApexに軍配が上がる • シンプルな要件であればフローのテストでも対応できる • 業務-システム間を仲介する役割としての「フローのテスト」 ◦
何をどう変えるのかが明確になる ◦ 既存の実装内容の見直し(この場合分けって本当に必要?) ◦ 期待される結果が明確になる
ご清聴ありがとうございました!!