测试是:
a. 找错误 (tester)
b. 证明program is right (release manager)
Test Phase:
Unit Test
integration Test (超过10-20开发人员中存在,模块化程度高,关注interface defect)
System Test
User Acceptance Test
Test Mothod:
white balck …
low level design -> unit test
performce test -> system test, because based on requirement (end to end)
CUT (coding + unit test)
SIT (system + integration)
white box test -> 流程节点可见,单元测试 (一般开发人员测试),根据路径来设计test case
black box test -> 接口,界面可见,功能测试
web dev 因为有很好的界面,适合做black box test,更快
银行系统等没有完整界面,适合做white box test
structure & function test
1. cannot cover all instance
2. reduce their overlap
静态测试:检查代码,不执行 FxCop / vs2005 project property -> code analysis
动态测试:执行代码,white box and black box
vs 2005 team edition -> create test project (Unit Test -> nUnit)
Tester Skill:
Test to Break attitude
understand customers point of view
strong desire of quality
attention to detail
可测试性
测试人员需要确保系统的可测试性
集成测试策略
1. Incremental Testing – easy to define reason, but need more programing
2. Big Bang Testing – save time, hard to find where is the bug
============
System Test
重要测试:
兼容性测试(例:ie, firefox, vista, xp / 多语言)
性能测试
负载测试
New feature Test
Regression Test (回归测试)
Effective Test Data
测试数据无法模拟pro
path bug, data bug
Alpha 内部
Beta 对外发布
============
Test case
等价类
边界值
========
Test Automation
Regresstion test 适合auto
New feature 不适合,因为界面变动大,automation effet 大
程序发生大的变化,automation script的脚本也将发生很大变化
function test
QTP
Slik
Ration Robet
performance test
row runner
Slik performer
ration Robet
QA
test director (QC)
slik manager
HTTP test steps:
dns
https hand shake
first buffer
recieve time
client show time
trouble shoot server slow tansection:
performace log
.net container step run time
压力测试忽略think time