SlideShare a Scribd company logo
1 of 18
Copyright (C) nohana, Inc. All rights reserved.
Copyright (C) nohana, Inc. All rights reserved.
2022/10/20
MagicPodで回帰テストを自動化している話
Copyright (C) nohana, Inc. All rights reserved.
自己紹介
Copyright (C) nohana, Inc. All rights reserved.
田井 康平
● 株式会社ノハナ
○ サービスデザイン部 品質管理グループ マネージャー(になりました)
● オンラインでのLTは2回目!
● QA業務をしつつ、スクラムマスターになるため、日々勉強中
● Twitter: @kotatoshi
Copyright (C) nohana, Inc. All rights reserved.
ノハナの紹介
Copyright (C) nohana, Inc. All rights reserved.
● フォトブックアプリ、年賀状アプリの開発
通常フォトブック
毎月1冊無料でつくれるスタンダードタイプ。
高画質仕上げ、表紙デザインやギフト包装など、用途で選べ
るオプションも豊富にご用意しています。
定期的な写真のまとめや、月齢アルバムにおすすめです。
プレミアムフォトブック
高精細な写真画質仕上げの銀塩ハードカバータイプ。
レイフラット製本で迫力の見開き写真が実現、最大89枚(表
紙含む)の写真が入ります。
特別なイベントや、1年ごとの思い出の記録におすすめです。
Copyright (C) nohana, Inc. All rights reserved.
QAイベント限定クーポンのご案内
● イベントご参加者限定の送料無料クーポンです。クーポンを利用すると税込み275
円分の送料が【無料】になります!!!
● 新規登録時にもらえるクーポンと併用することで、通常フォトブック1冊無料でご
注文できます
● 登録期限:22年10月31日23:59
● 利用期限:23年11月01日08:59
● 利用期限は1年なので、アプリをインストールしてクーポンを登録してくださ
い!!
qaevent2022
Copyright (C) nohana, Inc. All rights reserved.
トピック
● MagicPodでの回帰テスト自動化
● 回帰テストの手動と自動の工数比較
● 自動化率について
● 最後に
Copyright (C) nohana, Inc. All rights reserved.
MagicPodでの回帰テスト自動化
Copyright (C) nohana, Inc. All rights reserved.
MagicPodでの回帰テスト自動化
Copyright (C) nohana, Inc. All rights reserved.
● 導入理由
○ プログラミング(コーディング)のスキルが不要
■ 個人のスキルに依存しない
○ 価格がリーズナブル
○ サーバーなど自前で準備不要(メンテやアップデート含め)
○ 共有ステップでシナリオ間でテストを共有できる
○ サポートが早い
○ 自動修復機能
○ 外部ツールとの連携
■ Slackへの結果通知、Jenkinsのジョブ実行、CIからの自動実行
Copyright (C) nohana, Inc. All rights reserved.
MagicPodでの回帰テスト自動化
Copyright (C) nohana, Inc. All rights reserved.
● 共有ステップの活用
● 組み合わせのサンプル(実際の組み合わせではありません)
○ この場合だと5シナリオある
■ それぞれで個別にテストコードを作成するとそれだけでも大変
○ 仕様変更時などのたびに5つのシナリオを修正する必要がある
○ 実際のテストではもっと多いパターンもあることが多い
→ 共有ステップで対応
Copyright (C) nohana, Inc. All rights reserved.
MagicPodでの回帰テスト自動化
Copyright (C) nohana, Inc. All rights reserved.
● 共有ステップの活用
● 共有ステップ内ではデータパターンの値をもとに条件分岐を導入
○ 例:商品選択の共有ステップで、色が◯◯である場合、◯◯を選択する
● 最初に共有ステップを作る時間はかかった
○ その後は流用できるので全体工数としては少なく済んだ
共有ステップのメリット
● 使い回し可能
● 修正時に1つのシナリオ修正でOK
Copyright (C) nohana, Inc. All rights reserved.
回帰テストの手動と自動の工数比較
Copyright (C) nohana, Inc. All rights reserved.
回帰テストの手動と自動の工数比較
Copyright (C) nohana, Inc. All rights reserved.
● 自動テストは失敗時のメンテコスト含む
● 自動テストの作成工数は除く
Android
手動で全て実施
自動テストが少し安
定してきたころ
期間は2年ぐらい
オフショアから内製
に切り替え
Copyright (C) nohana, Inc. All rights reserved.
回帰テストの手動と自動の工数比較
Copyright (C) nohana, Inc. All rights reserved.
● 自動テストは失敗時のメンテコスト含む
● 自動テストの作成工数は除く
iOS
テストケース見
直しのため
自動化初期はエラー
になるケースが多い
期間は2年ぐらい
オフショアから内製
に切り替え
Copyright (C) nohana, Inc. All rights reserved.
回帰テストの手動と自動の工数比較
Copyright (C) nohana, Inc. All rights reserved.
● 全体工数が減ったタイミング
○ オフショアでの手動テストから内製での手動テストへの切り替え
○ 自動テストの増加
● 全体工数が増えたタイミング
○ テストケースの見直し
○ エラーのため手動で実施
○ エラーが大量に発生しメンテナンスが必要
■ テストケースの修正漏れ(修正箇所を全て修正してないケースなど)
■ アプリを更新すると要素が見つからなくなることなどがある
Copyright (C) nohana, Inc. All rights reserved.
回帰テストの自動化率について
Copyright (C) nohana, Inc. All rights reserved.
回帰テストの自動化率について
Copyright (C) nohana, Inc. All rights reserved.
※次の期の予定
※1Sprintの2週間なので、1年での推移
※破線は今四半期の期初に設定したもの
テストケース見
直しのため
Copyright (C) nohana, Inc. All rights reserved.
回帰テストの自動化率について
Copyright (C) nohana, Inc. All rights reserved.
● 現状、期初の予定とほぼ同じ進捗で推移
● Androidはそのまま(現状、追加で自動化できる箇所なし)
● 次の期以降も決済とiOSは自動化を進める予定
● CIで定期実行を行っている(テスト環境)
○ デグレなどを早期検知するため
○ 現在はAndroidのみなので、iOSも対応予定
● 定期実行の安定化
● リリース前の本番環境でのテスト
Copyright (C) nohana, Inc. All rights reserved.
最後に
Copyright (C) nohana, Inc. All rights reserved.
● 初期コストはかかるものの、メンテコストはそこまで高くない
● ノー(ロー)コードだと、属人化しないので誰でもできる
● 外部サービスだとサーバーなど環境準備、メンテが不要
● 共有ステップの活用
● 自動化が難しいところは無理して自動化しないことが重要かも
今日お話しした内容の一部はブログも公開していますので、ご覧ください!!
ノハナではAndroidエンジニアを絶賛募集しています!!詳しくは@kotatoshi,
kohei_tai@nohana.co.jpまで!
MagicPodを利用して回帰テストを自動化している話

More Related Content

Recently uploaded

論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video UnderstandingToru Tamaki
 
Utilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native IntegrationsUtilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native IntegrationsWSO2
 
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。iPride Co., Ltd.
 
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...Toru Tamaki
 
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルLoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルCRI Japan, Inc.
 
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Gamesatsushi061452
 
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptxsn679259
 
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。iPride Co., Ltd.
 
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイスLoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイスCRI Japan, Inc.
 
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半        2024/04/26の勉強会で発表されたものです。新人研修 後半        2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。iPride Co., Ltd.
 

Recently uploaded (10)

論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
 
Utilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native IntegrationsUtilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native Integrations
 
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
 
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
 
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルLoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
 
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
 
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
 
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
 
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイスLoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
 
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半        2024/04/26の勉強会で発表されたものです。新人研修 後半        2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。
 

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 

Featured (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

MagicPodを利用して回帰テストを自動化している話

  • 1. Copyright (C) nohana, Inc. All rights reserved. Copyright (C) nohana, Inc. All rights reserved. 2022/10/20 MagicPodで回帰テストを自動化している話
  • 2. Copyright (C) nohana, Inc. All rights reserved. 自己紹介 Copyright (C) nohana, Inc. All rights reserved. 田井 康平 ● 株式会社ノハナ ○ サービスデザイン部 品質管理グループ マネージャー(になりました) ● オンラインでのLTは2回目! ● QA業務をしつつ、スクラムマスターになるため、日々勉強中 ● Twitter: @kotatoshi
  • 3. Copyright (C) nohana, Inc. All rights reserved. ノハナの紹介 Copyright (C) nohana, Inc. All rights reserved. ● フォトブックアプリ、年賀状アプリの開発 通常フォトブック 毎月1冊無料でつくれるスタンダードタイプ。 高画質仕上げ、表紙デザインやギフト包装など、用途で選べ るオプションも豊富にご用意しています。 定期的な写真のまとめや、月齢アルバムにおすすめです。 プレミアムフォトブック 高精細な写真画質仕上げの銀塩ハードカバータイプ。 レイフラット製本で迫力の見開き写真が実現、最大89枚(表 紙含む)の写真が入ります。 特別なイベントや、1年ごとの思い出の記録におすすめです。
  • 4. Copyright (C) nohana, Inc. All rights reserved. QAイベント限定クーポンのご案内 ● イベントご参加者限定の送料無料クーポンです。クーポンを利用すると税込み275 円分の送料が【無料】になります!!! ● 新規登録時にもらえるクーポンと併用することで、通常フォトブック1冊無料でご 注文できます ● 登録期限:22年10月31日23:59 ● 利用期限:23年11月01日08:59 ● 利用期限は1年なので、アプリをインストールしてクーポンを登録してくださ い!! qaevent2022
  • 5. Copyright (C) nohana, Inc. All rights reserved. トピック ● MagicPodでの回帰テスト自動化 ● 回帰テストの手動と自動の工数比較 ● 自動化率について ● 最後に
  • 6. Copyright (C) nohana, Inc. All rights reserved. MagicPodでの回帰テスト自動化
  • 7. Copyright (C) nohana, Inc. All rights reserved. MagicPodでの回帰テスト自動化 Copyright (C) nohana, Inc. All rights reserved. ● 導入理由 ○ プログラミング(コーディング)のスキルが不要 ■ 個人のスキルに依存しない ○ 価格がリーズナブル ○ サーバーなど自前で準備不要(メンテやアップデート含め) ○ 共有ステップでシナリオ間でテストを共有できる ○ サポートが早い ○ 自動修復機能 ○ 外部ツールとの連携 ■ Slackへの結果通知、Jenkinsのジョブ実行、CIからの自動実行
  • 8. Copyright (C) nohana, Inc. All rights reserved. MagicPodでの回帰テスト自動化 Copyright (C) nohana, Inc. All rights reserved. ● 共有ステップの活用 ● 組み合わせのサンプル(実際の組み合わせではありません) ○ この場合だと5シナリオある ■ それぞれで個別にテストコードを作成するとそれだけでも大変 ○ 仕様変更時などのたびに5つのシナリオを修正する必要がある ○ 実際のテストではもっと多いパターンもあることが多い → 共有ステップで対応
  • 9. Copyright (C) nohana, Inc. All rights reserved. MagicPodでの回帰テスト自動化 Copyright (C) nohana, Inc. All rights reserved. ● 共有ステップの活用 ● 共有ステップ内ではデータパターンの値をもとに条件分岐を導入 ○ 例:商品選択の共有ステップで、色が◯◯である場合、◯◯を選択する ● 最初に共有ステップを作る時間はかかった ○ その後は流用できるので全体工数としては少なく済んだ 共有ステップのメリット ● 使い回し可能 ● 修正時に1つのシナリオ修正でOK
  • 10. Copyright (C) nohana, Inc. All rights reserved. 回帰テストの手動と自動の工数比較
  • 11. Copyright (C) nohana, Inc. All rights reserved. 回帰テストの手動と自動の工数比較 Copyright (C) nohana, Inc. All rights reserved. ● 自動テストは失敗時のメンテコスト含む ● 自動テストの作成工数は除く Android 手動で全て実施 自動テストが少し安 定してきたころ 期間は2年ぐらい オフショアから内製 に切り替え
  • 12. Copyright (C) nohana, Inc. All rights reserved. 回帰テストの手動と自動の工数比較 Copyright (C) nohana, Inc. All rights reserved. ● 自動テストは失敗時のメンテコスト含む ● 自動テストの作成工数は除く iOS テストケース見 直しのため 自動化初期はエラー になるケースが多い 期間は2年ぐらい オフショアから内製 に切り替え
  • 13. Copyright (C) nohana, Inc. All rights reserved. 回帰テストの手動と自動の工数比較 Copyright (C) nohana, Inc. All rights reserved. ● 全体工数が減ったタイミング ○ オフショアでの手動テストから内製での手動テストへの切り替え ○ 自動テストの増加 ● 全体工数が増えたタイミング ○ テストケースの見直し ○ エラーのため手動で実施 ○ エラーが大量に発生しメンテナンスが必要 ■ テストケースの修正漏れ(修正箇所を全て修正してないケースなど) ■ アプリを更新すると要素が見つからなくなることなどがある
  • 14. Copyright (C) nohana, Inc. All rights reserved. 回帰テストの自動化率について
  • 15. Copyright (C) nohana, Inc. All rights reserved. 回帰テストの自動化率について Copyright (C) nohana, Inc. All rights reserved. ※次の期の予定 ※1Sprintの2週間なので、1年での推移 ※破線は今四半期の期初に設定したもの テストケース見 直しのため
  • 16. Copyright (C) nohana, Inc. All rights reserved. 回帰テストの自動化率について Copyright (C) nohana, Inc. All rights reserved. ● 現状、期初の予定とほぼ同じ進捗で推移 ● Androidはそのまま(現状、追加で自動化できる箇所なし) ● 次の期以降も決済とiOSは自動化を進める予定 ● CIで定期実行を行っている(テスト環境) ○ デグレなどを早期検知するため ○ 現在はAndroidのみなので、iOSも対応予定 ● 定期実行の安定化 ● リリース前の本番環境でのテスト
  • 17. Copyright (C) nohana, Inc. All rights reserved. 最後に Copyright (C) nohana, Inc. All rights reserved. ● 初期コストはかかるものの、メンテコストはそこまで高くない ● ノー(ロー)コードだと、属人化しないので誰でもできる ● 外部サービスだとサーバーなど環境準備、メンテが不要 ● 共有ステップの活用 ● 自動化が難しいところは無理して自動化しないことが重要かも 今日お話しした内容の一部はブログも公開していますので、ご覧ください!! ノハナではAndroidエンジニアを絶賛募集しています!!詳しくは@kotatoshi, kohei_tai@nohana.co.jpまで!