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
ソフトウェアテスト第4章
Search
nikawa2161
October 17, 2024
5.8k
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ソフトウェアテスト第4章
nikawa2161
October 17, 2024
More Decks by nikawa2161
See All by nikawa2161
Node.js Subpath imports
nikawa2161
0
32
Sagaパターン入門(続編)
nikawa2161
0
46
Sagaパターン入門
nikawa2161
0
53
沖縄観光とPostgreSQL排他制約の話
nikawa2161
0
39
20251209_プログラミング原則の学び
nikawa2161
0
34
自分のコードを数年ぶりに読んだら
nikawa2161
0
22
ユーザーインタビュー分析に参加して得られたことと気づき
nikawa2161
0
37
oEmbedとは?
nikawa2161
0
200
はじめまして、にかわです
nikawa2161
0
28
Featured
See All Featured
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.1k
What's in a price? How to price your products and services
michaelherold
247
13k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
300
Google's AI Overviews - The New Search
badams
0
1.6k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
600
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
520
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
650
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
990
Transcript
知識ゼロから学ぶ ソフトウェアテスト 第4章 created by: Ô @nikawa2161 | @nikawa2161 |
✉
[email protected]
Table of contents ⏪ ブラックボックステスト
よろしくお願いします
ブラックボックス
ホワイトボックス 論理構造が正しいかを解析するテスト →プログラムの中にある if ⽂やループの部分がきちんと動作してい るか (ステートメント/ブランチカバレッジの話) ブラックボックス 外部から⾒た動作や機能に焦点を当てたテスト →フォームに正しい⼊⼒を⾏った際に、期待した結果が得られるか
ホワイトボックス 論理構造が正しいかを解析するテスト →プログラムの中にある if ⽂やループの部分がきちんと動作してい るか (ステートメント/ブランチカバレッジの話) ブラックボックス 外部から⾒た動作や機能に焦点を当てたテスト →フォームに正しい⼊⼒を⾏った際に、期待した結果が得られるか
ソフトウェアとは
ソフトウェアの4つの仕事
ブラックボックス
境界値テスト
None
None
「境界」にはバグがある
if(a >= 1) { console.log("aは1以上"); } else { console.log("aは1未満"); }
サンプルコード // >と>=の間違い if(a > 1) { console.log("aは1以上"); } else { console.log("aは1未満"); } // 数字の書き間違い if(a >= 2) { console.log("aは1以上"); } else { console.log("aは1未満"); } // 境界がない if(a >= 1) { console.log("aは1以上"); }
境界のどこをテストするか On-Offポイント
仕様:3900円で送料無料
None
// 正解 if(a >= 1) { console.log("aは1以上"); } else {
console.log("aは1未満"); } // >と>=の間違い if(a > 1) { console.log("aは1以上"); } else { console.log("aは1未満"); }
ディシジョンテーブルテスト 複雑な⼊出⼒のためのテスト
仕様 ⼊⼒A:1から999まで⼊⼒可能 ⼊⼒B:1から999まで⼊⼒可能 出⼒:AxB パターン ABとも正しい Aだけ正しい Bだけ正しい ABとも正しくない
None
状態遷移テスト GUIをテストする
None
状態遷移で⾒つかるバグ 期待していない状態に遷移するバグ 分岐やswitch⽂などが正しく書かれていない 遷移⾃体がない場合 ある状態からある状態に遷移できない
None
None
None
まとめ 最も重要で、最も時間を費やし、最も簡単なテスト このテスト⼿法で、⼀番多くのバグが⾒つかる
境界値→ディシジョンテーブル→状態遷移
次回
考えておりません
ご清聴ありがとうございました