计算机工程 ›› 2012, Vol. 38 ›› Issue (24): 27-31.doi: 10.3969/j.issn.1000-3428.2012.24.007

所属专题: 云计算专题

• 云计算专题 • 上一篇    下一篇

基于云计算的并行测试方案设计与实现

黄晓玲,陈桂林,赵生慧   

  1. (滁州学院计算机与信息工程学院,安徽 滁州 239000)
  • 收稿日期:2012-05-03 修回日期:2012-07-11 出版日期:2012-12-20 发布日期:2012-12-18
  • 作者简介:黄晓玲(1984-),女,助教、硕士,主研方向:云计算,软件测试;陈桂林、赵生慧,教授
  • 基金项目:

    安徽省自然科学基金资助项目(11040606M152);滁州学院科研基金资助项目(2011kj015B)

Design and Implementation of Parallel Testing Schema Based on Cloud Computing

HUANG Xiao-ling, CHEN Gui-lin, ZHAO Sheng-hui   

  1. (College of Computer and Information Engineering, Chuzhou University, Chuzhou 239000, China)
  • Received:2012-05-03 Revised:2012-07-11 Online:2012-12-20 Published:2012-12-18

摘要: 目前对软件测试用例的需求在以指数级增长,导致测试资源相对不足、测试成本高、测试用例执行效率低等问题更加突出。为解决上述问题,设计一个基于云计算的并行测试方案,采用有限状态机定义测试对象及测试过程中的状态迁移,借鉴随机路线的思想,提出一个并行测试用例生成算法,在此基础上给出基于MapReduce模型和云计算平台的并行测试脚本。实验结果表明,与顺序执行测试序列相比,该方案的加速比可达20,测试效率有明显提高。

关键词: 云计算, 云测试, 并行测试, 有限状态机, MapReduce模型

Abstract: With the demands for software test cases in exponential growth, the problems such as relative shortage of test resources, high cost of testing and low efficiency execute of test cases are increasingly outstanding. To solve the above problems, a parallel test schema based on cloud computing is proposed, which uses Finite State Machine(FSM) to define test object and state transition in testing process. Parallel test case generation algorithm based on random routes idea is proposed, and a parallel test script based on the MapReduce and cloud computing platform is designed. Experimental results show that compared with test sequence of executing sequential, the acceleration of schema is up to 20, so the test efficiency is significantly improved.

Key words: cloud computing, cloud testing, parallel testing, Finite State Machine(FSM), MapReduce model

中图分类号: