1 / 11

Jtop–JUnit 测试用例管理平台

Jtop–JUnit 测试用例管理平台. 北京大学 周 冀. JUnit 与测试用例管理. JUnit 是最常用的 Java 单元测试框架 TestCase :类级别的测试用例,包含测试方法 TestSuite :一组测试方法的集合 TestRunner : TestSuite 的执行器 测试用例管理可以使测试过程更高效 回归测试是十分耗时的工作,测试用例管理可以有效减少回归测试的代价 JUnit 缺乏有效地测试用例管理方法. 需求分析. 常见需求 运行多个 TestSuite 选择测试特定源程序的测试用例

Download Presentation

Jtop–JUnit 测试用例管理平台

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Jtop–JUnit测试用例管理平台 北京大学 周 冀

  2. JUnit与测试用例管理 • JUnit是最常用的Java单元测试框架 • TestCase:类级别的测试用例,包含测试方法 • TestSuite:一组测试方法的集合 • TestRunner:TestSuite的执行器 • 测试用例管理可以使测试过程更高效 • 回归测试是十分耗时的工作,测试用例管理可以有效减少回归测试的代价 • JUnit缺乏有效地测试用例管理方法

  3. 需求分析 • 常见需求 • 运行多个TestSuite • 选择测试特定源程序的测试用例 • 调整TestSuite中测试方法的顺序(优先级排序) • 选择TestSuite的子集(消减) • 混合操作

  4. Jtop概述 • 动机 • 增强JUnit的测试用例管理能力 • 提高回归测试的效率 • 静态代码分析技术 • 被测方法和测试方法的函数调用图 • 算法 • 基于方法调用图的测试用例静态优先级排序算法和消减算法 • 实现 • Eclipse plug-in

  5. 运行多个suite中的测试方法

  6. 特定源程序的测试用例-提取源程序

  7. 特定源程序的测试用例-提取测试用例

  8. 测试用例消减

  9. 测试用例优先级排序

  10. TestSuite生成

  11. 谢谢!

More Related