节点文献
EJB测试平台测试数据生成和管理子系统的设计与实现
The Design and Realization of Test Data Generation and Management Subsystem of Supporting Platform of EJB
【作者】 刘江红;
【导师】 孙家骕;
【作者基本信息】 北京大学 , 计算机软件与理论, 2007, 硕士
【摘要】 软件测试的开销在整个软件开发过程中占有重大的比例,提高软件测试的效率、降低测试的开销,对降低软件成本具有重要作用。测试数据生成是软件测试之中一个占用大量资源的过程,如何更好地减少测试数据生成过程之中测试人员的繁琐的劳动成为了一个重要的问题;同时,更好地组织大量的测试数据,有效的复用已有的测试数据,也能够大大提高软件测试的效率。EJB构件技术是近来年被广泛应用的商业化构件技术,所以保证EJB构件的质量至关重要。软件测试是保证EJB构件质量的一个重要的手段。为更有效的实施针对EJB构件的测试,我们开发了一个EJB测试平台。本文主要涉及测试平台的测试数据生成和管理子系统。本文设计了利用模板来生成大量测试数据的方法,模板包含测试数据模板和测试序列模板两种。文中给出它们的定义和实例化的算法。用户只需要书写模板,系统就能够自动生成满足模板的测试数据或者测试序列。本文中同时给出了测试数据管理的方法。本文将测试相关的各种数据进行了有效的管理,采用XML文档形式对这些数据进行存储,并提供对这些数据的创建、修改、删除和查询等操作。系统实现了以对象数据为最小复用单位的数据复用,同时系统还支持对一次或者多次回归测试结果的自动分析,用于指导测试人员更好的进行测试。
【Abstract】 The software test cost is a big portion of the total software cost. Improving the efficiency of test and decreasing the cost of cost have special significance for decreasing the cost of software. Test data generation is a process that takes a mass of resources. It is becoming an important problem that how to decrease effort tests have to pay in the test data generating process. Mean while, better organization of test data and efficient reuse of existing test data can also heavily improve the efficiency of software testing.EJB technique is a business component technique which is widely used in recent years. So it is very important to ensure their quality. Software testing is one of the most important techniques used to assure the quality of EJB component at present.In order to carry out test automation about EJB component more effective, we developed an EJB test platform. This thesis is mainly about test data generation and organization subsystems of the test platform. In this thesis, we design a method that uses template to generate mass test datum. There are two kinds of templates: test data template and test sequence template. We propose their definition and provide algorithm to instantiate them. The user just need to write template, then our system will automatically generate test data or test sequences that satisfy the template.In this thesis, we also provide a method to organize test data. In thesis, data associated with testing are well managed. We use XML document to store these data, and operations on them such as create, modify, delete and query. The system implement data reuse with object data as the minimum unit of reuse, and the system also provides analysis for single or more test results, and gives guidelines to testers.
【Key words】 test platform; EJB test; test data template; test data generation; test data management; regression test;
- 【网络出版投稿人】 北京大学 【网络出版年期】2007年 03期
- 【分类号】TP311.52
- 【被引频次】1
- 【下载频次】173