首页 | 本学科首页   官方微博 | 高级检索  
     

轻量级接口自动化测试框架设计与实践
引用本文:孙立哲.轻量级接口自动化测试框架设计与实践[J].计算机应用与软件,2020,37(1):27-30,36.
作者姓名:孙立哲
作者单位:公安部第三研究所eID事业部 上海 201204
摘    要:某后端服务产品接口多,接口功能复杂,针对该产品多版本迭代测试时需执行的测试用例数多达上万条,以手动测试方式难以满足短时间版本频繁迭代的测试需求。为了对该产品实现自动化测试,基于面向对象、Web页面开发等技术,借鉴JUnit的分层思路,设计并实现了一套较实用的轻量级接口自动化测试框架。框架支持自动生成内含各测试用例细节描述及对应结果等信息的测试结果文件,支持以Web页面形式对测试结果进行个性化展示与浏览。基于此框架的自动化测试能在短时间内高效、准确地完成多个版本、上万条测试用例的快速执行,有效地解决了该产品因短时间版本频繁迭代所带来的测试压力。

关 键 词:面向对象技术  自动化测试框架设计  Web页面开发技术  JAVA编程

DESIGN AND PRACTICE OF LIGHTWEIGHT INTERFACE AUTOMATION TESTING FRAMEWORK
Sun Lizhe.DESIGN AND PRACTICE OF LIGHTWEIGHT INTERFACE AUTOMATION TESTING FRAMEWORK[J].Computer Applications and Software,2020,37(1):27-30,36.
Authors:Sun Lizhe
Affiliation:(eID Department,The Third Research Institute of Ministry of Public Security,Shanghai 201204,China)
Abstract:There are many interfaces in a back-end service product,and each interface has complex functionality.The number of test cases to be executed in multi-version iteration test is up to tens of thousands.It is difficult to meet the test requirements of frequent iteration of short-time version by manual test.In order to realize the automatic testing of the product,we draw on JUnit s layered thinking,and design and implement a set of practical and lightweight interface automatic testing framework based on several technology such as the object-oriented technology and Web page development technology.The framework supported the automatic generation of test result files which included test case details and the corresponding executing results,and supported personalized presentation and browsing of test results in the form of Web pages.The framework can efficiently and accurately complete the rapid execution of multiple versions and tens of thousands of test cases in a short time,which effectively solves the test pressure caused by frequent iterations of short time versions.
Keywords:Object-oriented technology  Automation test framework design  Web page development technology  Java programming
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号