• 中国精品科技期刊
  • CCF推荐A类中文期刊
  • 计算领域高质量科技期刊T1类
高级检索

服务接口测试自动化工具的研究

卓欣欣, 白晓颖, 许静, 李恩鹏, 刘喻, 康介恢, 宋文莉

卓欣欣, 白晓颖, 许静, 李恩鹏, 刘喻, 康介恢, 宋文莉. 服务接口测试自动化工具的研究[J]. 计算机研究与发展, 2018, 55(2): 358-376. DOI: 10.7544/issn1000-1239.2018.20160721
引用本文: 卓欣欣, 白晓颖, 许静, 李恩鹏, 刘喻, 康介恢, 宋文莉. 服务接口测试自动化工具的研究[J]. 计算机研究与发展, 2018, 55(2): 358-376. DOI: 10.7544/issn1000-1239.2018.20160721
Zhuo Xinxin, Bai Xiaoying, Xu Jing, Li Enpeng, Liu Yu, Kang Jiehui, Song Wenli. A Tool for Automatic Service Interface Testing[J]. Journal of Computer Research and Development, 2018, 55(2): 358-376. DOI: 10.7544/issn1000-1239.2018.20160721
Citation: Zhuo Xinxin, Bai Xiaoying, Xu Jing, Li Enpeng, Liu Yu, Kang Jiehui, Song Wenli. A Tool for Automatic Service Interface Testing[J]. Journal of Computer Research and Development, 2018, 55(2): 358-376. DOI: 10.7544/issn1000-1239.2018.20160721
卓欣欣, 白晓颖, 许静, 李恩鹏, 刘喻, 康介恢, 宋文莉. 服务接口测试自动化工具的研究[J]. 计算机研究与发展, 2018, 55(2): 358-376. CSTR: 32373.14.issn1000-1239.2018.20160721
引用本文: 卓欣欣, 白晓颖, 许静, 李恩鹏, 刘喻, 康介恢, 宋文莉. 服务接口测试自动化工具的研究[J]. 计算机研究与发展, 2018, 55(2): 358-376. CSTR: 32373.14.issn1000-1239.2018.20160721
Zhuo Xinxin, Bai Xiaoying, Xu Jing, Li Enpeng, Liu Yu, Kang Jiehui, Song Wenli. A Tool for Automatic Service Interface Testing[J]. Journal of Computer Research and Development, 2018, 55(2): 358-376. CSTR: 32373.14.issn1000-1239.2018.20160721
Citation: Zhuo Xinxin, Bai Xiaoying, Xu Jing, Li Enpeng, Liu Yu, Kang Jiehui, Song Wenli. A Tool for Automatic Service Interface Testing[J]. Journal of Computer Research and Development, 2018, 55(2): 358-376. CSTR: 32373.14.issn1000-1239.2018.20160721

服务接口测试自动化工具的研究

基金项目: 国家重点研发计划项目(2016YFB1000504);国家自然科学基金项目(61472197)
详细信息
  • 中图分类号: TP311

A Tool for Automatic Service Interface Testing

  • 摘要: 在面向服务的架构中,软件功能通常被封装为服务,并以开放可编程接口的方式提供应用.因此,服务接口的正确性和可靠性对于服务理解、重用和集成至关重要.随着软件即服务的思想被广为认可,互联网上越来越多的软件应用以服务接口方式提供开放式访问.面对众多的服务接口,如何进行高效且有效的测试是一个亟待解决的问题.为此,提出了一种基于模型驱动的自动化测试方法,首先采用接口语义契约模型对被测服务接口建模,然后基于接口模型和测试覆盖率需求为单个服务和组合服务生成测试数据和测试用例.在此基础上,设计并实现了AutoTest自动化测试工具,该工具采用多种算法用于优化测试用例生成,且支持图形化测试计划编排和跨语言测试代码生成.实验结果表明,AutoTest能够有效支持大批量测试用例的设计和生成,根据OED(正交实验设计)算法生成的测试用例与IPO组合算法得到的用例相比,具有更为理想的测试覆盖率.
    Abstract: In SaaS (software-as-a-service), software functions are encapsulated as independent and self-contained services, and users can access these services through well-defined interface. The correctness and reliability of service interfaces are critical for service understanding, reuse and integration. With the increasing acceptance of SaaS, more and more software expose interfaces for Internet-based open access. API testing for service interfaces is thus getting increasing attentions. To this end, a model-driven automatic testing method is presented to facilitate efficient and effective service interfaces testing. A model called ISC (interface semantic contract) is defined for modeling services with domain knowledge. Following the model-driven approach, tests are generated from ISC at three levels: test data, test cases for individual services and for composite services. Test cases are then translated to target programming languages through a kind of meta-model defined for test cases. An automatic testing tool (AutoTest) has been designed and implemented, which integrates various algorithms to optimize test generation. What’s more, the tool supports design test plan in graphical form and generates test cases in multiple programming languages, for example, C++ or Java. Experimental results demonstrate that AutoTest can support design and generation of large quantities of test cases effectively and efficiently, and test cases generated by OED (orthogonal experimental design) algorithm have more satisfactory test coverage than those by pairwise IPO (in parameter order) algorithm.
  • 期刊类型引用(15)

    1. 叶进,谢紫琪,肖庆宇,宋玲,李晓欢. 数据中心网络中基于ELM的流簇大小推理机制. 计算机科学与探索. 2021(02): 261-269 . 百度学术
    2. 林霄,姬硕,岳胜男,孙卫强,胡卫生. 面向跨数据中心网络的节点约束存储转发调度方法. 计算机研究与发展. 2021(02): 319-337 . 本站查看
    3. 王金焱. 异构无线网络多路径流量调度算法研究. 常熟理工学院学报. 2021(02): 70-75 . 百度学术
    4. 董金良,刘小伟,李海江. 基于蚁群优化的通信网络负荷信息分散协调调度. 水电与抽水蓄能. 2021(03): 68-71 . 百度学术
    5. 韩茂玲. 复杂网络大规模数据流均衡调度方法. 成都工业学院学报. 2021(03): 38-42 . 百度学术
    6. 武自强,周建涛,赵大明,柳林. 数据中心基于服务满足度的网络流避让方法. 计算机工程与应用. 2021(19): 116-122 . 百度学术
    7. 时洋 ,文梅 ,费佳伟 ,张春元 . 一种基于DAG的网络流量调度器. 计算机研究与发展. 2021(12): 2798-2810 . 本站查看
    8. 李文信,齐恒,徐仁海,周晓波,李克秋. 数据中心网络流量调度的研究进展与趋势. 计算机学报. 2020(04): 600-617 . 百度学术
    9. 陈珂,刘亚志,王思晗. 基于流量特征的流调度策略研究综述. 计算机应用研究. 2020(10): 2889-2894 . 百度学术
    10. 郑莹,段庆洋,林利祥,游新宇,徐跃东,王新. 深度强化学习在典型网络系统中的应用综述. 无线电通信技术. 2020(06): 603-623 . 百度学术
    11. 柯文龙,王勇,叶苗,陈俊奇. Ceph云存储网络中一种业务优先级区分的多播流调度方法. 通信学报. 2020(11): 40-51 . 百度学术
    12. 李维虎,张顶山,崔慧明,周龙,朱志挺,谢挺. 数据中心网络coflow调度机制结构构建及仿真. 电子测量技术. 2019(10): 78-81 . 百度学术
    13. 康瑾,李革. 面向医院手术排程的智能规划算法研究. 信息技术. 2019(11): 37-41+45 . 百度学术
    14. 孙超. 基于模糊反馈的共享网络远程数据控制仿真. 计算机仿真. 2019(10): 409-412+438 . 百度学术
    15. 王远. 数据中心网络拥塞控制研究综述. 信息工程大学学报. 2019(06): 714-719 . 百度学术

    其他类型引用(13)

计量
  • 文章访问数:  1061
  • HTML全文浏览量:  8
  • PDF下载量:  812
  • 被引次数: 28
出版历程
  • 发布日期:  2018-01-31

目录

    /

    返回文章
    返回