一、annotation的概念
通过annotation去标记method 和class, 组织测试用例。
二、主要的annotation
1) Before/After annotation
2) @Test annotation
3) 其他annotation
三 、Before/after annotation的周期图
分析 测试 代码的执行过程可知,before/after系的annotation可知,生命周期图如下:
通过annotation去标记method 和class, 组织测试用例。
分析 测试 代码的执行过程可知,before/after系的annotation可知,生命周期图如下: