成绩构成课程大纲参考文献1. The basic concepts and theories of testingSoftware testingTest Cycle测试分三个维度Fault, Error & Failure2. Principle of Testing3. White Box控制流Basic Path TestingCondition testing数据流(考试无关)4. Black Box4.1 Random Testing4.2 Equivalence Partitioning4.3 Boundary Value Analysis4.4 Cause Effect Analysis5. Integration TestImportant traits of a good UI6. Mutation TestingHow good are my testsMutation testingFinite automata7. Mid-Review7.1 测的部分分类7.1.1 Input Domain Testing Techniques7.1.2 Code-Base Testing Techniques7.1.3 Fault-Based Testing Techniques7.1.4 Model-Based Testing Techniques7.2 测的区域分类7.2.1 Unit Testing7.2.2 Integration Testing7.2.3 System Testing8. Maintain考试相关
第4-5周,6-7,重要,8非常重要
软件测试Ron Patton, Software Testing(2th Edition)
测试用例不断更新
grey box between black and white box
unit - white box system - black box
Source of Problems:
测试流程
Goal of a software tester:
BRD - Business requirement document MRD - Market requirement document PRD - Program requirement document
Customer requirements The software development team must determine what the customer wants.
Specification
The specification takes the data from the customer requirements and other sources and defines:
Specifications can be:
Testing - 找 Debugging - 修 Verification - 文档 Validation - 是不是用户想要的
axiom公理
Examine the Design Document & Code static
Control Flow
控制流:
数据流:
Example
cyclomatic complexity 圈复杂度->图越复杂->程序越复杂
圈复杂度计算
V(G)= the number of Independent path
Not complete Testing:
Logical conditions
Branch testing
for a compound condition C, test true and false branches of C and every simple condition of C
e.g., for C = (a>b) AND (c<d) test:
Domain testing
for an expression E1 rel-op E2, test for E1 ≧ ≦ = < > ≠ E2
Coverage
path coverage 最大
Path Testing Pu
Statement Testing P1
Branch Testing P2
P1 ≤ P2 ≤ Pu
Definition
A location where a value for a variable is stored into memory
def and use
数据流必须全拆,控制流有些可不拆(并行判断要拆)
Test case:
Adaptive Random Testing 选点有规则且与前几个用例越来越远
Identify input equivalence classes注意边界值:
Example strategy as extension of equivalence partitioning:
因果分析
RT ART - Reduce test case EP - Reduce test case & maintain test performance BVA - Maintain test performance & Coverage Cause Effect - Reduce Test case
driver - 用于集成测试
Accessibility Testing for disabled
变异测试
Coverage = 有多少代码能够测到的 Key idea = 从早期和常见的错误中学习,防止它们再次发生,(如拼写错误)
Mutation testing terms
Bug
Requirement——black box Design Code——white box
White&Black box
Unit
测interface
Approaches
Test Function
Functional
Non-Functional