Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
ソフトウェアテスト第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
48
Sagaパターン入門
nikawa2161
0
54
沖縄観光とPostgreSQL排他制約の話
nikawa2161
0
39
20251209_プログラミング原則の学び
nikawa2161
0
37
自分のコードを数年ぶりに読んだら
nikawa2161
0
25
ユーザーインタビュー分析に参加して得られたことと気づき
nikawa2161
0
38
oEmbedとは?
nikawa2161
0
220
はじめまして、にかわです
nikawa2161
0
28
Featured
See All Featured
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Designing Experiences People Love
moore
143
24k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
330
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
The Spectacular Lies of Maps
axbom
PRO
1
1k
Mobile First: as difficult as doing things right
swwweet
225
10k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
700
Believing is Seeing
oripsolob
1
220
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Documentation Writing (for coders)
carmenintech
77
5.5k
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
まとめ 最も重要で、最も時間を費やし、最も簡単なテスト このテスト⼿法で、⼀番多くのバグが⾒つかる
境界値→ディシジョンテーブル→状態遷移
次回
考えておりません
ご清聴ありがとうございました