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
2
5.8k
ソフトウェアテスト第4章
nikawa2161
October 17, 2024
Tweet
Share
More Decks by nikawa2161
See All by nikawa2161
error-marp.pdf
nikawa2161
0
1
difit
nikawa2161
0
2
フロントのキャッシュ
nikawa2161
0
4
Dia
nikawa2161
0
2
LLMを拡張機能に
nikawa2161
0
7
経営戦略(人生)
nikawa2161
0
7
コンポーネントとレンダー
nikawa2161
0
4
cursor
nikawa2161
0
6
llm.pdf
nikawa2161
0
4
Featured
See All Featured
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
47
9.6k
Documentation Writing (for coders)
carmenintech
73
5k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
Build The Right Thing And Hit Your Dates
maggiecrowley
37
2.8k
The Art of Programming - Codeland 2020
erikaheidi
54
13k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Balancing Empowerment & Direction
lara
1
530
GraphQLの誤解/rethinking-graphql
sonatard
71
11k
What's in a price? How to price your products and services
michaelherold
246
12k
Java REST API Framework Comparison - PWX 2021
mraible
33
8.8k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.4k
Writing Fast Ruby
sferik
628
62k
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
まとめ 最も重要で、最も時間を費やし、最も簡単なテスト このテスト⼿法で、⼀番多くのバグが⾒つかる
境界値→ディシジョンテーブル→状態遷移
次回
考えておりません
ご清聴ありがとうございました